Benches macOS

4

Help...Move files without changing "date …

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I need to move files over from my old dead g4's hard drive to my intel mac book pro - but without altering the "date modified" in my documents and folders. I've pulled them over once, but all the files get tagged with the modification date I pull them onto the new hard drive.

Are there any utilities or software or tricks to do this?

Any help or direction will be appreciated.

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    janos_84

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    open up terminal (/Applications/Utilities/Terminal.app) and type:

    cp -p <source> <destination>

  2. 0

    Robert Stover

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for the tip, but I'm getting an error message. "unexpected token '<'m pulling from "New 250" or is the down to the file level... <New 250>users>documents>tcpa-report.doc>

    ?

    I hope that makes sense....

  3. 0

    mac_1984

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi, it is likely that the paths you have entered have spaces in them so they will not work.

    Try dropping the source and destination folders on to the terminal window. This way you will get the correct syntax for the paths.

    Hope this helps.

  4. 0

    R C-R

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Robert Stover wrote:

    When you say <source> is that just the name of the hardrive I'm pulling from "New 250" or is the down to the file level... <New 250>users>documents>tcpa-report.doc>

    Terminal requires complete file paths in the UNIX style, using slashes between parts of the path. The root of all paths for files on mounted volumes is "Volumes" but if that is omitted the path defaults to the startup volume. Spaces separate command parts, so you must also "escape" spaces that appear in path names or they will be interpreted as command part separators. To escape a character, either precede it with a backslash ("") or enclose the entire part of the path in quotes.

    So, assuming "New 250" is not the startup (boot) volume, the UNIX style path to "tcpa-report" would be:

    /Volumes/New 250/Users/Documents/tcpa-report.doc

    If "New 250" is the boot drive, you could also use:

    /Users/Documents/tcpa-report.doc

    Fortunately, you don't have to remember any of this if you use the drag & drop capabilities of Terminal. Type the command up to the place where you need to enter a path (including typing the space just before it). Then drag the item whose path you need from the Finder into the Terminal window & drop it there. The path will automatically be formatted, including any escaping needed.

    If you need to follow one path with another, just type the single space that must separate them & drag the other file path into the window. Obviously, if the second path doesn't exist yet, you can't do this but you can drag the enclosing item into the window & type the final part of the path yourself. You can also use copy & paste within Terminal: copy by dragging across text with the pointer to highlight it, copy, then paste at the cursor.