Originally Posted by
dsmryder
I have a HDD that I'd like to use as a backup location for my server. I have found that rsync should work to run my backups, but I would need it to automatically mount my drive. I went into my fstab and have added the
To be fair, I'm partially replying so that I see answers to the above myself! As it stands, I'm having to run Nautilus just to mount the external HDD, but testing for a file in the root of the external HDD before backing up.
Originally Posted by
dsmryder
I would also know how to properly use rsync to run my backup. I may have come close to figuring that one out, though.
I almost used rsync - then I found rdiff-backup. The diff files save me LOTS of time, space, and disk activity. Otherwise my backup script looks very similar to yours - here's one chunk:
Code:
if [ -f /media/backup/testfile.sh ]
then
rdiff-backup --remove-older-than 20B /media/backup/usr/
sudo rdiff-backup -v5 --print-statistics --exclude '**log' --exclude '**vdi' /usr /media/backup/usr
fi
Bookmarks