|
|
A free perl/rsync backup script
Below is the script I use to make backups, run from cron, nightly. I had a mishap several months ago losing all my data. Since then, I make sure to keep consistent backups of my /Users folder. I figured if I have another mishap, I will reinstall everything anyway, so no need for a full drive backup. I do have other scripts like this one backing up other areas such as my WebServer folder, etc. I use 'rsync', but anything could be used in its place. I have tested my backups and really do not have fear of not having the resource forks. Maybe this is dumb, but under OS X, I am not too concerned.
I got the idea of this script from someone else. It has been so long I cannot remember, so I cannot give this person credit by name, but this process (although heavily modified by myself) did not originate from my mind. Hope this helps some. Let me know what you think. And that is it!
Looks promising ...
... but the directories are never created.
In step 4 you meant perhaps $PARBAK as source?
Here is my attempt (still it does not create directories):
Looks promising ...
I don't think its a very good idea to use cpio in a Mac environment. cpio is not mac resource /HFS aware.
That's not incremental
You seem to be using a curious definition of 'incremental'. An incremental backup is a difference between the last full backup set plus all the incremental backups taken since then and the current state of the filesystem. Sure, what you do doesn't copy any files except the ones that have changed, but for any file that has changed, you copy the whole file, and you also keep around (yes, I know it's via hard link) all the files that haven't changed.
That's not incremental
Sorry, I should have made it clear that I don't really care about network bandwidth, I care about long-term storage requirements. So sure, rsync will only spend a handful of packets to send over that one byte difference in a ten gigabyte file, but you're keeping both copies of the whole ten gigabyte file (with a one byte difference between them) on the backup disk afterwards. |
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.13 seconds |
|