Skip to content

leftyfb/backup_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

usage:

backup.sh local

Dependencies:

rsync - for backing up files mysql - if you want to backup mysql db's bc - calculations

NOTE:

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

TODO

  • 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

About

Backup script description goes here

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages