backup.sh/readme.md

32 lines
828 B
Markdown
Raw Normal View History

2020-02-20 01:25:50 +00:00
```bash
#!/usr/bin/env bash
2020-02-26 17:27:53 +00:00
print_logo () {
2020-02-20 01:25:50 +00:00
cat <<'EOF'
_ _ _
| |__ __ _ ___| | ___ _ _ __ ___| |__
| '_ \ / _` |/ __| |/ / | | | '_ \ / __| '_ \
| |_) | (_| | (__| <| |_| | |_) |\__ \ | | |
|_.__/ \__,_|\___|_|\_\\__,_| .__(_)___/_| |_|
|_|
EOF
# Copyright (c) 2020 Andrew Davidson
}
print_help () {
echo -e """
Usage:
backup.sh 'command' 'destination'
Supported Commands:
backup - initiate a backup of the home folder to the destination
list - list backups on the destination
prune - prune old backups on the destination
Supported destinations:
royal - local borg/SFTP backup to Royal
wasabi - remote restic backup to Wasabi
"""
}
```