I need to copy a large number of files and folders from one folder to another on the same SMB share exposed by an Isilon server featuring server-side copy. Copying individual files and folders through the Finder window works fine, almost instantaneously, and does not cause any significant network traffic, thus I assume that here server-side offloading works. However, when I try to copy files from the terminal, my network traffic goes up and the throughput is accordingly low.

The share is mounted as follows:

$ mount
//my.name@server/RemoteFolder on /Volumes/RemoteFolder (smbfs, nodev, nosuid, mounted by my.name)

I tried to copy via the command line using cp, scp, ditto, and rsync to no avail, e.g.,

$ cp -vpRi "/Volumes/RemoteFolder/old/Peter Gabriel/" "/Volumes/RemoteFolder/groups/genesis/peter.gabriel"

How can I imitate the behaviour from option-drag & drop through the Finder in the command line?

Grateful for any hints!

  • Are you sure that Findet actually copies (duplicates) the files and doesn't just move them? – nohillside Jul 20 '17 at 15:15
  • 2
    Yes, I'm sure. Both CMD+C/CMD-Ving as well as option-drag copies a folder I use for testing with about 300 MB in a few seconds, while cp et al. takes almost one minute. – monomeric Jul 20 '17 at 16:12
  • Are you using SMB2 to mount and have you tried scopy from smbclient? And wiki.samba.org/index.php/Server-Side_Copy – Trefex Jul 20 '17 at 17:45
  • 1
    I ended up using robocopy from a Win10 host - thanks @Trefex for the link to the samba doc. – monomeric Jul 21 '17 at 16:33

You must log in to answer this question.

Browse other questions tagged .