## Synopsis:
This module works with [python-digitalocean](https://github.com/koalalorenzo/python-digitalocean) to allow you to rsync and snapshot your droplets with ease. **Great for hourly cron jobs!**
###### Works with posix (*nix, osx, cygwin)
Tested with Python 2.7.8(CYGWIN), 2.7.9(OS X/Linux), 3.4.3(OS X/Linux)
## How to install:
via pip
pip install -U python-digitalocean-backup
via source
python setup.py install
##### PyPI package
[https://pypi.python.org/pypi/python-digitalocean-backup](https://pypi.python.org/pypi/python-digitalocean-backup)
##### Example backup script (backup.py):
```python
from digitaloceanbackup import *
for droplet in DigitalOcean().droplets:
Backup(
droplet=droplet,
ssh_user="root",
ssh_key="do_rsa",
remote_dirs=['/home', '/var/log', '/var/www'],
rsync_excludes=['cache', '.DS_Store', 'man3'],
snapshot_hour=2,
keep_snapshots=7,
debug=False
)
```
##### Example hourly cron job:
```sh
0 * * * * /usr/bin/python /Users/username/bin/backup.py
```
###### Requires:
[python-digitalocean>=1.5](https://github.com/koalalorenzo/python-digitalocean)
This module works with [python-digitalocean](https://github.com/koalalorenzo/python-digitalocean) to allow you to rsync and snapshot your droplets with ease. **Great for hourly cron jobs!**
###### Works with posix (*nix, osx, cygwin)
Tested with Python 2.7.8(CYGWIN), 2.7.9(OS X/Linux), 3.4.3(OS X/Linux)
## How to install:
via pip
pip install -U python-digitalocean-backup
via source
python setup.py install
##### PyPI package
[https://pypi.python.org/pypi/python-digitalocean-backup](https://pypi.python.org/pypi/python-digitalocean-backup)
##### Example backup script (backup.py):
```python
from digitaloceanbackup import *
for droplet in DigitalOcean().droplets:
Backup(
droplet=droplet,
ssh_user="root",
ssh_key="do_rsa",
remote_dirs=['/home', '/var/log', '/var/www'],
rsync_excludes=['cache', '.DS_Store', 'man3'],
snapshot_hour=2,
keep_snapshots=7,
debug=False
)
```
##### Example hourly cron job:
```sh
0 * * * * /usr/bin/python /Users/username/bin/backup.py
```
###### Requires:
[python-digitalocean>=1.5](https://github.com/koalalorenzo/python-digitalocean)
Release files for python-digitalocean-backup 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-digitalocean-backup-1.1.0.tar.gz | 6.0 kB | Details |
Release files / python-digitalocean-backup-1.1.0.tar.gz
| Download URL | python-digitalocean-backup-1.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4bc746b3108b83442bde5be715f53808160d1c2358a95c3ae39887ecf2bcb73
|
|
BLAKE2b-256 checksum How to use checksums |
fdbffcd043ead0625836fde7219dd9f170f4a0b04f828c9d932b8e87578b6013
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |