Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Alternate approaches' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Alternate approaches
Authored by: brettc on Mar 13, '02 09:58:01AM
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.

[ Reply to This | # ]
Alternate approaches
Authored by: sabi on Mar 13, '02 05:06:33PM
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_directory
If 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.


[ Reply to This | # ]
RsyncX -- rsync with HFS+ support
Authored by: sjk on Mar 16, '02 03:04:36PM