Whats faster? Copy via nfs-mount or via scp?

203 picture 203 · Apr 3, 2013 · Viewed 12.9k times · Source

we have a network of several machines and we want to distribute a big directory (ca. 10 GB) to every box.

It is located on an nfs-server and is mounted on all machines, so first approach is to just use normal cp to copy the files from the mounted to a local directory. This is easy, but unfortunately there is no progress bar, because it is not intended to use it for network copies (or is it?).

Using scp is intended for copying across network, but it may encrypt everything and therefore be slow.

Should one be faster, and if so, which: cp on nfs-mount or scp?

Answer

Piotr Zierhoffer picture Piotr Zierhoffer · Apr 3, 2013

You can always use rsync, it can show you the progress (with --progress option) and is more lightweight than scp.

You can enable compression manually with -z.