|
|
Alternate approaches
sudo mkdir /afptemp Why be root? You can create a mount point anywhere you want. And I tried both iDisk (which is resource-fork friendly) and Disk Image (which can contain files with resource forks inside, yet doesn't need a resource fork itself) approaches, but both were problematic I'd be interested to know what was problematic about them, since I've used both successfully. Here's an example of copying BBEdit to my iDisk and back: % mkdir iDisk As you can see, the resource fork was preserved, so were the type and creator, even the creation/modification dates.
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
Alternate approaches
iDisk/ditto problem details
Ditto to my AFP share works fine. But ditto to iDisk had a file name too long problem: danwan% ditto -V -rsrcFork /Applications/BBEdit Lite 6.1 /Users/danwan/idisktemp/Documents/BB So ditto-ing the whole folder to iDisk didn't work. But ditto-ing the OS9 and the OSX apps individually to iDisk did work: danwan% cd /Applications/BBEdit Lite 6.1
Alternate approaches:Or the unix way
There's always the secure, gzipped transfer:
Alternate approaches:Or the unix way
Also check out hfstar:
http://www.geocities.com/paulotex/tar/
launch?
What's this launch command? I don't seem to have it on my computer, though I do have DevTools installed. |
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.08 seconds |
|