Easy and complete folder backups

Jun 12, '01 07:23:52PM

Contributed by: robg

"hellmachine" posted a one-line terminal command in this MacNN forum which will copy a given directory, including all hidden files and resource forks, to a backup location:

sudo ditto -vR -rsrcFork /Users /Volumes/Backups/Users
This example would back up the Users directory to a volume named "Backups". The -rsrcFork option will handle the resource fork of the files during the copy.

I have not tested this myself, and I cannot find any documentation ("man ditto") on the -rsrcFork option. Use at your own risk, but it doesn't look too threatening, as ditto is a copy command.

Comments (5)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2001061219235249