#9
|
|||
|
|||
The solution seems to be... ditto
[FYI, it is not that I consider potential scanning a threat to the integrity of my files... it is that the image is mounted read/write, and in that condition anyone or anything can mess with the data, and that messing-with will be saved without any notification when you unmount the image. A simple "slip of the wrist" here could erase the entire contents of your disk image. Leaving the image intact, but empty. Something as critically important as data from a backed up disk should never be left this vulnerable.]
However, regarding the main thread: I believe I have found the solution to restoring a backed up volume to a folder. This little adventure is my current winner for "Far, Far More Difficult than it Needs to Be (or even Is)." Recall that my problem was how to "reshuffle" the contents of partitions and drives on my system. At my (apparent) success point, I have gone from 5 drives and 14 partitions down to 4 drives and 7 partitions. Probably still too many, but this is FAR more manageable! The sticking point in this was my desire to back up a volume (a partition) and restore it to a FOLDER.
PLEASE, if anybody reading this believes that I may be making a Really Big Mistake, do let me know! But the answer appears to be to use the built-in command line utility "ditto" running as root. Under 10.4 ditto by default preserves resource forks -- when using a OS X version earlier than 10.4 you must explicitly use the switch "--rsrc" or "-rsrcFork" ("Preserve resource forks and HFS meta-data"). SO. Consider that I have a partition [or a mounted disk image] named "Downloads" whose entire contents I want to move to a FOLDER named "Downloads," which exists on a different volume. I want the "cloned" files to be identical (as near as possible) to the originals. Specifically: I want the creation and modification dates and the permissions of every "copied" file to be identical to the original. Of course, I also want all meta-data preserved. Hey, it's easy! The form is Code:
ditto source_dir destination_dir Code:
sudo ditto /Volumes/Downloads /Volumes/chinesemenu/Downloads ditto apparently also copies invisible files. This is both good... and problematic. I don't think I need to (and in fact, maybe I shouldn't) copy those hundreds of .DS_Store files. What about the .Trashes files? The "501, 502 and 503" folders? An empty "Cleanup at Startup" folder? AppleShare PDS, Desktop, Desktop DB and Desktop DF files? A folder named "EU2P9I1J4FI58RJ8NMDF9901C8" contained in a folder named "HFSExtentTables" (Created and Modified December 12, 2002)?? Etc., etc., etc. (You can see I've had this drive, or at least its data, around for some while!) If anyone has any suggestions about invisible files I most certainly should find and delete, please let me know. If anyone knows of a way to tell ditto to skip files matching a particular criterion, please let me know too. And, like I said, if I'm really making a Big Mistake using ditto for this, please tell me about that, too. Thanks! |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy Script for Applications folder? | Pisces | General | 7 | 07-06-2005 11:04 AM |
problems restoring from image | lpn | General | 5 | 06-27-2005 04:08 PM |
Image restore ends with an error | adamd | General | 3 | 06-22-2005 09:50 AM |
safety clone and utilities folder | camner | General | 1 | 05-20-2005 07:06 AM |
Backup folder to folder | mortenosx | General | 1 | 04-30-2005 05:42 PM |