#!/bin/bash #install duplicity: #sudo apt-get install duplicity #sudo apt-get install python-pip #sudo pip install paramiko export PASSPHRASE=MYSECRETPASSPHRASE duplicity --num-retries 20 /home/myHomeDir sftp://USERNAME@MYSERVER//home/myHomeDir/duplicity unset PASSPHRASE #amend the following to your crontab for regular backups at 3.am (issuing 'crontab -e') #0 3 * * * /path/to/script/duplicity_backup.sh
No comments:
Post a Comment