管理数字海洋液滴备份的python模块。
python-digitalocean-backup的Python项目详细描述
##简介:
此模块与[python digitalocean]一起工作(https://github.com/koalalorenzo/python-digitalocean),允许您轻松地同步和快照液滴。**非常适合每小时的cron作业!**
3.4.3.3(OS X/Linux操作系统)
>pip-install-u-python-digitaloceandigitaloceanbackp
<
#####备份脚本示例(backup.py):
``python
来自digitaloceanbackup import*
用于digitalocean()中的液滴。液滴:
备份(
液滴=液滴,
ssh_user=“root”,
ssh_key=“do_rsa”,
远程目录=['/home','/var/log','/var/www'],
rsync_excludes=['cache',“.ds\u store”,“man3”],
snapshot-hour=2,
keep\u snapshot=7,
debug=false
```
需要:
[python digitalocean>;=1.5%(https://github.com/koalalorenzo/python-digitalocean)
此模块与[python digitalocean]一起工作(https://github.com/koalalorenzo/python-digitalocean),允许您轻松地同步和快照液滴。**非常适合每小时的cron作业!**
3.4.3.3(OS X/Linux操作系统)
>pip-install-u-python-digitaloceandigitaloceanbackp
<
#####备份脚本示例(backup.py):
``python
来自digitaloceanbackup import*
用于digitalocean()中的液滴。液滴:
备份(
液滴=液滴,
ssh_user=“root”,
ssh_key=“do_rsa”,
远程目录=['/home','/var/log','/var/www'],
rsync_excludes=['cache',“.ds\u store”,“man3”],
snapshot-hour=2,
keep\u snapshot=7,
debug=false
```
需要:
[python digitalocean>;=1.5%(https://github.com/koalalorenzo/python-digitalocean)