mirror of
https://github.com/nxshock/backuper.git
synced 2025-12-01 13:48:58 +05:00
No description
| .gitattributes | ||
| .gitignore | ||
| backuper.go | ||
| config.go | ||
| consts.go | ||
| extractionplan.go | ||
| filehistory.go | ||
| go.mod | ||
| go.sum | ||
| index.go | ||
| index_test.go | ||
| LICENSE | ||
| logger.go | ||
| main.go | ||
| make.bat | ||
| pattern.go | ||
| README.md | ||
| utils.go | ||
| utils_test.go | ||
backuper
Usage
Incremental backup
backuper i <config file path>
Full backup
backuper f <config file path>
Search files in backup
backuper s <config file path> <mask>
Recover files from backup
backuper r <config file path> <mask> <files datetime> <path to recover>
Examples:
# Recover Go files relevant as of 01.01.2023 to /home/user/go directory
backuper r config.conf "*.go" "01.01.2023" "/home/user/go"
Test backup for errors
backuper t <config file path>
Basic config example
Backup config files from /etc and sqlite files from /var:
FileName = "backup"
[[Patterns]]
Path = "/etc"
FileNamePatternList = ["*.conf", "*.toml", "*.ini", "*.yaml"]
Recursive = true
[[Patterns]]
Path = "/var"
FileNamePatternList = ["*.sqlite"]
Recursive = true