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
- Host: GitHub
- URL: https://github.com/throughnothing/pyckup
- Owner: throughnothing
- Created: 2011-03-01T05:02:56.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-04-06T20:33:32.000Z (about 15 years ago)
- Last Synced: 2023-04-14T01:26:36.748Z (about 3 years ago)
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.