|
|
10.4: Use rysnc to perform automatic backups
I was bitten by the following: if /Volumes/Backup is a removable drive, like a firewire drive, and it gets unplugged, rsyncx will create a folder in /Volumes named 'Backup', and write the files there. If you are mirroring the drive, as I was, this will completely fill the source hard drive, causing all kinds of problems. To help prevent this, I bracketed the script with an if-then statement checking that the backup drive exists before writing to it, as follows:
Although I am no Unix expert, the following code seems to work well:
10.4: Use rysnc to perform automatic backups
That's a very valid point - and one I fell for. To include this into my original hints, the code is:
Funny thing with rsync is that you seem to need to run it twice to get it to sync properly - something fishy going on here somewhere...!!!
10.4: Use rysnc to perform automatic backups
Put the backup script on the removable drive, then if it's not connected cron can't run it. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|