|
|
Alternate approaches
These are excellent tips, however I'm trying to take this approach yet allow backups to only copy changed files, so if I run this command as above, only changed items from a 20GB set of files are copied every evening at 2AM or something. It doesn't seem very efficient to copy everything every time.
"rsync" does this with the command listed below, however the resource forks aren't retained. Anyone have an idea of how to get the functionality of both of these in one command. I would think Apple would have updated ditto with this sync or backup functionality by now, but it's still dated 1994 when you do a "man" on it!
This works, but copies the whole set every time:
sudo ditto -v -rsrcFork '/Volumes/MacintoshHD/Desktop Folder/Projects/' '/backup/Projects/'
This is nice, but doesn't get the resource forks:
rsync -av --delete '/Volumes/Macintosh HD/Desktop Folder/Projects/' '/backup/Projects/'
Thanks for any feedback! I could probably install someone else's copy tool in unix perhaps, I was just hoping something might already be built in.
Alternate approaches
Ditto doesn't do syncing. There are some Perl modules that do,
though, and a command-line rsync-a-like (psync).
psync [-d][-n][-q|-v] source_items ... target_directory psync -r[-d][-n][-q|-v] source_directory target_directoryIf you have Fink, just install 'macosx-file-pm' and you'll get psync. Fink's info says: macosx-file-pm-0.61-1: A collection of modules to manipulate files on MacOS X.
RsyncX -- rsync with HFS+ support
This looks interesting:
http://www.macosxlabs.org/rsyncx/rsyncx.html
|
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.07 seconds |
|