Short guide shorter:
1) Create a bash script with the following (note there are only two lines below, the command is long):
#!/bin/bash
sudo rsync -av --progress --delete --log-file=<location to put log file>/$(date +%Y%m%d)_rsync.log <directory to backup> <directory to put backed up directory in>
2) Run "sudo crontab -e" and enter the following line to have your backup done every morning at 4am:
0 4 * * * /root/rsync-shell.sh

0 comments:
Post a Comment