Hi!
I have just installed a second SATA HDD on my server and have mounted it on /backup.
I made a shell script which was supposed to automatically do a daily backup of /var/mail/*, /var/www/*, /var/mysql/* and /etc/*.
The script itself was working fine but a) it was taking way to long for daily backups, and b) it was causing the server load to spike above 70!
I then looked into different options and thought if I could just overwrite older destination files and delete destination files that where deleted from the source directory during the backup, it would speed things up and save resources.
I looked at rsync, which seems to be able to do what I want, but I think I might need some help. From looking through the manual, it would seem like I'd need something like this:
rsync -ahruvpog --delete /var/mail/* /backup/mail/
But as I said, I'm not too sure. I have tested it a little, but it still seems to be taking forever, although the server load doesn't seem to high while it's running.
Start Free Trial