I’m backing up my VM’s from my storage server to external HDD for offsite backup. I’m trying to monitor how the progress is going, but despite what appears to be the right parameter, I’m not seeing it. I’ve created a script with a command for each of the dirs that uses a supplied parameter (the date stamp on the backup dir) for each directory. At the end I want it to shoot me an email. My command is called backup.sh. I’m running it as root, sh backup.sh 2013-01-25_04-00-00
The backup.sh looks like this inside:
rsync -r -v --progress /mnt/storage/nfs/ocl_nfs_1/backups/server1/server1-$1 /media/external/server1 | mail -s "RSync Job Log" firstname.lastname@example.org
(more server backups follow this one, each using the same command with the names changed.)
I’m sure there’s a better way to do this. I’m running this on Openfiler 2.99 2.6.32-131.17.1.el6-0.11.smp.gcc4.4.x86_64. (based on rPath)
also, if there's a faster way to transfer to a USB device other than Rynsc that will still mail me a log when completed I'd appreciate any additional input.