Skip to main content
1 of 3
Tim
  • 1.1k
  • 7
  • 25

Or, alternatively, is there any good way to transfer a large number of small files between different folders and between different servers? My filesystem is ext4.

Rsync over ssh is something I use on a regular base. Used with the --archive option it will preserve file permissions, symlinks etc.

rsync -av /mnt/data <server>:/mnt 

This example will copy the local directory /mnt/data and its contents to a remote server inside /mnt. This notation will invoke ssh to set up the connection. No rsync deamon is needed on either side of the wire.

This operation can also be performed between 2 local directories, or from a remote to local.

Tim
  • 1.1k
  • 7
  • 25