scp using tar:
Following sequence retrieves data from remote server immediately without need to store compressed tar to file.
ssh root@server tar -c /www/domain.com | tar -x
Following sequence sends local data via ssh to the remote server.
tar -c /www/domain.com | \
ssh root@server cd /www/domain.com '&&' tar -x
No comments:
Post a Comment