Posted By

wnasich on 10/22/11


Tagged

tar linux network copy directories


Versions (?)

Copy Files Across a Network/Internet in LINUX


 / Published in: Bash
 

URL: http://www.crucialp.com/resources/tutorials/server-administration/how-to-copy-files-across-a-network-internet-in-unix-linux-redhat-debian-freebsd-scp-tar-rsync-secure-network-copy.php

tar is usually used for achiving applications, but what we are going to do in this case is tar it then pipe it over an ssh connection. tar handles large file trees quite well and preserves all file permissions, etc, including those UNIX systems which use ACLs, and works quite well with symlinks.

  1. tar -cf - /some/file | ssh host.name tar -xf - -C /destination

Report this snippet  

You need to login to post a comment.