An open API service indexing awesome lists of open source software.

https://github.com/throughnothing/pyckup

Backup solution that wraps duplicity to give you a single, simple config to manage multiple backup souces and targets
https://github.com/throughnothing/pyckup

Last synced: 5 months ago
JSON representation

Backup solution that wraps duplicity to give you a single, simple config to manage multiple backup souces and targets

Awesome Lists containing this project

README

          

#Pyckup
Pyckup is a wrapper around duplicity (http://duplicity.nongnu.org/duplicity.1.html) that allows you to setup multiple targets and sources, use public/private key encryption, and backup the same source to multiple locations easily, and with a single config

All the code is in one python file to make it easier to move around and distribute to other machines.

## Installation
Needed python packages:

boto configobj

For ubuntu:

sudo aptitude install python-boto python-configobj

Otherwise:

pip install boto configobj

##Config
Here is a sample config for pyckup (sample\_pyckuprc in the repo).

[TARGETS]
aws_access_key_id = AWSACCESSKEYID1
aws_secret_access_key = AWSSECRETACCESSKEY1

[[amazon_photos]]
aws_access_key_id = AWSACCESSKEYID2
aws_secret_access_key = AWSSECRETACCESSKEY2
path = s3+http://my_s3_bucket/duplicity-photos/
encrypt = 2D9E0CB3

[[amazon_dot_files]]
# This target will use default aws_* fields from above
path = s3://my_s3_bucket/duplicity-dot-files/
encrypt = 2D9E0CB3

[[local_photos]]
path = file:///home/throughnothing/backups/photos/
encrypt = none

[[local_dot_files]]
path = file:///home/throughnothing/backups/dot_files/
encrypt = none

[SOURCES]
[[photos]]
path = /home/throughnothing/Pictures/
exclude = **
include = *.jpg,*.JPG,*.jpeg,*.JPEG

[[dot_files]]
path = /home/throughnothing/
exclude = **
include = .vim,.vimrc,.irss,.ssh,.gnupg,.bashrc,.alias

##Usage
Pyckup is pretty simple to use. Once you have your config set up, you can run it like so:

pyckup -s photos -t amazon_photos

This will back up your photos source to your amazon\_photos target. You can also backup to multiple targets by using:

pyckup -s photos -t amazon_photos,local_photos

This way you can have a local copy for quick restores, as well as a backup in s3 for disaster recovery when your local backup dies.

The --help option should explain everything else you can do with pyckup.

Currently backups have been tested on local filesystem, amazon s3, and using scp.

#TODO

Add support for Rackspace CloudFiles.

Add support for these duplicity flags:
--full-if-older-than
--file-to-restore
--time
--restore-time
--volsize
--asynchronous-upload (experimental in duplicity)

#Disclaimer
This software comes with no guarantees and very well may destroy your backups and burn your external hard drives. Use at your own risk.

#License
This software is uncopyrighted. Do whatever you like with it, recognition is appreciated.