Skip to content

linuskendall/py-duplicity-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backup Tool

Installation steps

  1. Unzip package
  2. python setup.by build
  3. python setup.py install
  4. gpg import-key for encryption key
  5. gpg gen-key for signing key
  6. Add to crontab

Pre-requisites

Libyaml should be installed to allow for C bindings for yaml interpretation.

Config File

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

Backup Destinations

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/** 

About

Wrapper for duplicity backups.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages