mirror of
https://github.com/nxshock/backuper.git
synced 2024-11-27 00:11:01 +05:00
.gitattributes | ||
.gitignore | ||
backuper.go | ||
config.go | ||
consts.go | ||
extractionplan.go | ||
filehistory.go | ||
go.mod | ||
go.sum | ||
index_test.go | ||
index.go | ||
LICENSE | ||
logger.go | ||
main.go | ||
make.bat | ||
pattern.go | ||
README.md | ||
utils_test.go | ||
utils.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