No description
Find a file
2021-07-15 21:09:57 -07:00
.gitignore ignoring env files to avoid accidentally committing secrets 2020-04-03 10:02:36 -04:00
backup.sh moving to be a wrapper around restic specifically 2021-07-15 21:09:57 -07:00
readme.md fixes #1 2020-02-26 12:27:53 -05:00

#!/usr/bin/env bash

print_logo () {
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
    """
}