Mac OS X 10.1: About Improving SMB File Transfer Speed with cp or CpMac

This document explains how you can enhance the file transfer rate when copying files between Mac OS X and a SMB file server volume, using Terminal and cp or CpMac (CpMac is included with Developer Tools). This document is needed only for Mac OS X versions 10.1 to 10.1.5.
Mac OS X permits normal file transfers with SMB server volumes via the Finder. For information about accessing an SMB server, see technical document 106471: "How to Connect to an SMB Volume (Microsoft Windows)".

When transferring very large files, you may wish to enhance file transfer rates by using cp or CpMac, which is included with Developer Tools. You must install the complete Developer Tools package to use CpMac.

CpMac is required before using Terminal to copy any application or file with a resource fork.

Follow these steps to install CpMac. (You only need to do this one time.)

Copying file(s) using Terminal

if you are copying files that do not have resource forks, such as plain text files, you should use cp. If you are copying files that have resource forks, or if you are not sure, you should use CpMac. Instructions for both commands follow.

Copy files using cp

Example: You would use this single Terminal command to copy a file named "List.txt" from the Home directory of a user name "Jane" to a folder named "Janes" on an SMB volume named "SMB_stuff":

% cp [space] /Users/Jane/List.txt [space] smb://SMB_stuff/Janes/List.txt

Copy files using CpMac

Example: You would use this single Terminal command to copy a file named "List.txt" from the Home directory of a user name "Jane" to a folder named "Janes" on an SMB volume named "SMB_stuff":

% /Developer/Tools/CpMac [space] /Users/Jane/List.txt [space] smb://SMB_stuff/Janes/List.txt


Note: This article contains information about Apple Developer Tools software. AppleCare does not provide usage support for Apple Developer Tools software. Paid support for Apple Developer Tools software is available at http://developer.apple.com.
Published Date: Oct 7, 2016