duplicity-scripts
My duplicity backup scripts
[stable] Backup using ssh backend
- backup-ssh.sh
- ignore (Exclude list for backup-ssh.sh)
Steps
- Install dependencies listed in comments inside backup-ssh.sh
- Ensure duplicity is installed
- Configure your ssh connection.. public key and such
- Create your ignore file (could add --dry-run to duplicity command for debugging)
- Change sourse/destination for your case
- Optionally, add the script to crontab or some other scheduler for automation
[stable] Backup using local storage + Google Cloud mirror storage
- I set up deja-dup on my Ubuntu, but a script similar to backup-ssh.sh can be used
- sync-gcloud.sh (Sync mirror storage)
Steps
- Set up a local storage based backup solution
- Enable Google Cloud Storage API
- Install and configure Google Cloud SDK
- Modify sync-gcloud.sh to your need
[out of maintainance] Backup using Google Drive backend
- backup-gdrive.sh
- requirements.txt (Dependencies)
- google-drive (Google Drive API Credentials git-ignored)