Linux Automated Backup

I've been wanting to setup some sort of automatic backup on my personal data for quite some time, but have always settled on manually copying important documents to a second hard drive. Well thanks to THIS nice guide to setting up rsync and cron I now have it setup.

Short guide shorter:

1) Create a bash script with the following (note there are only two lines below, the command is long):

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/


Popular posts from this blog

Easy and accurate SVG to DXF conversion using Inkscape and pstoedit

XCode4: UITabBarController with UINavigationController using Interface Builder

Novice to Coin Part 1 - Blockchain Data Structure