Skip to main content
## 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)

Metadata

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)

Source distribution for python-digitalocean-backup 1.1.0
File Size Uploaded Provenance
python-digitalocean-backup-1.1.0.tar.gz 6.0 kB Without provenance 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

Security for python-digitalocean-backup 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page