- Author: Ryan Fitton
- Last updated: 2021/03/28
-
Ensure you have these packages installed:
- netcat
- exim4
- lftp
- curl
sudo apt-get install netcat exim4 lftp curl -
Set your backup options, mainly for the remote FTP server in
backup-config.sh -
Ensure each script is 'pulling in' the
backup-config.shfile with the right path. Edit this line if your file is not being found:source '/backup-config.sh' -
Run your scripts. Amend the default values for your setup:
-
For LXC Container Snapshots:
sudo ./backup-container-snapshot.sh 'yourlxdcontainername' -
For MySQL Database dumps:
sudo ./backup-mysqldump.sh 'yourfilename' 'yourdatabasehost' 'yourdatabaseuser' 'yourdatabasepassword' -
For Tar.GZ file backups:
sudo ./backup-tar-files.sh 'yourfilename' '/' '--exclude=/var/snap/lxd --exclude=/snap --exclude=/var/lib/lxd'
-