Benches macOS

4

Fastest method for copying files?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hello

I have hundreds of gigabytes to migrate from one server to another and was wondering the fastest copying method. To use drag&drop within the Finder or use the Terminal command cp-R..?

Thanks,

Tim

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    Camelot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The Finder almost certainly isn't the fastest option, especially if there are many files (it performs a sanity check on each file to ensure you have permissions, sufficient disk space, etc. before it even starts copying).

    Are the two servers local or remote?

    There are some different issues if dealing with remote data transfer (e.g. using compression to minimize traffic over the wire), which may be irrelevant if the servers are local.

    For local transfers,
    cpio or
    tar may be faster than
    cp, but the difference may not be significant, depending on the nature of the files (many small files vs. fewer large files).

  2. 0

    Mabel O'Farrell

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    You will get better results using the 'ditto' command. It will preserve the permissions and the file metadata when doing the copy. You might wish to connect the two machines via Firewire and boot the new machine in target disk mode to do the transfer.

  3. 0

    foilpan

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    you can also use rsync, with or without compression depending on whether each machine is local or remote.

  4. 0

    tibor.moldovan

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This may sound silly, but can you not just move the hard drives?

    I've been in situations where I've started rsync, or ditto via either firewire and/or ethernet, and then remembered that I can just swap the HDs...