Using tar to copy files between servers (Linux)
Posted by on 2015-02-17 10:15:13:
This command will copy files between servers - ownership of the files changes to the user you used to login to the remote server with.
This can be any user with SSH access.
tar -czf - directory/ | ssh user@remotehost "tar -xzf -"
Tags: Linux
Return to home page: Home