Installation steps
- Unzip package
- python setup.by build
- python setup.py install
- gpg import-key for encryption key
- gpg gen-key for signing key
- Add to crontab
Libyaml should be installed to allow for C bindings for yaml interpretation.
Should be present either in ~/.backup.cfg /etc/backup.cfg or current directory backup.cfg
[backup]
log_file: duplicity.log
[archives]
# generate new full backups at least weekly
full_if_older_than: 1W
# keep four full backups of incrementals
keep_incrementals_for: 4
# remove backups older than 6 months
remove_older_than: 6M
[s3]
aws_access_key_id:
aws_secret_access_key:
[encryption]
encrypt_key:
sign_key:
passphrase:
sign_passphrase:
[paths]
mysqldump: /usr/bin/mysqldump
duplicity: /usr/local/bin/duplicity
Specified in yaml file passed as argument to script:
backup_source: /
backup_dest: file:///tmp/backups
db_backup_dir: /tmp/db_backups
databases:
- name: mydb
user: mydbuser
password: mydbpass
directories:
- /etc/**
- /home/**