Catching up the readme

This commit is contained in:
Andrew Davidson 2021-07-16 06:48:48 -07:00
parent c8f66d3976
commit 3328c83133
Signed by: amd
GPG key ID: 17AF8F2A49CF25C6

View file

@ -16,16 +16,21 @@ EOF
print_help () { print_help () {
echo -e """ echo -e """
Usage: Usage:
backup.sh 'command' 'destination' backup.sh 'command' 'destination' 'input'
Supported Commands: Supported Commands:
init - intiialize a new backup repository
backup - initiate a backup of the home folder to the destination backup - initiate a backup of the home folder to the destination
check - check repository for consistency check - check repository for consistency
snapshots - list backups on the destination find - find a file by a string in the repository (requires input)
prune - prune old backups on the destination ex: backup.sh find s3 critical_file.doc
stats - print statistics about the backup repository
help - print this help help - print this help
init - intiialize a new backup repository
prune - prune old backups on the destination
restore - restores file from repository (requires input)
ex: backup.sh restore s3 latest --target=/tmp/restore --include=/home/user/Documents
snapshots - list backups on the destination
stats - print statistics about the backup repository
unlock - unlock a locked repository - use for stale locks
Required Configuration: Required Configuration:
\$XDG_CONFIG_HOME/backup.sh/\$DESTINATION/\$DESTINATION.repo \$XDG_CONFIG_HOME/backup.sh/\$DESTINATION/\$DESTINATION.repo