Crontab

cron job — run from sudo

sudo vi /root/rdiff-shell.bash

#!/bin/bash
sudo rdiff-backup --print-statistics /home/user/ /media/disk/NewBackup/ >& /media/disk/final.log

sudo chmod +x /root/rdiff-shell.bash

sudo crontab -e

# m h  dom mon dow   command
14 3 * * * /root/rdiff-shell.bash
# m h  dom mon dow   command
15 1 * * * rdiff-backup /home/jonathan/ /media/disk/SlickBackup/
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.