Mindtwist.de

...let your mind twist!

How to copy files between two Linux servers

Sometimes you need to copy files between two Linux servers. While scp and rsync seem to be the obvious choice, often using netcat nc is slightly faster. Read on for a short example... You need to run the following command on the source machine:

# (cd / && tar -cvf - ) | nc destinationip 31337

On the destination machine run this command:

# nc -l -p 31337 | tar -xvf -
 

Linux Magazine

Linux Magazine News
  • Rocks Releases Mamba

    The latest version of Rocks cluster distribution – an open source toolkit for real and virtual clusters – has been released.

  • PowerTOP Releases v2.0

    PowerTOP releases v2.0 of its Linux tool, with improved diagnostics and user interface.