backup.sh local
rsync - for backing up files mysql - if you want to backup mysql db's bc - calculations
Backing up over SSH assumes you have a profile for the target setup in your ~/.ssh/config file.
Options:
--target=<name> Specify the backup target.
--local Run the script in local mode.
--mysqluser=<user> Override the default MySQL username.
--mysqlpass=<pass> Specify the MySQL password.
--help Display this help message.
Examples:
$0 --target=production
$0 --local
$0 --mysqluser=admin
$0 --mysqluser=admin --mysqlpass=supersecure
$0 --target=staging --local --mysqluser=admin --mysqlpass=topsecret
- source ~/.backup.conf for settings
- REALLY test and fix deleting old backups
- add -l switch for local
- remove the whole "bastion" thing. We should use ssh ProxyJump instead
- remove bc as a dependency