Streamed Tar

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Destination box: nc -l -p 2342 | tar -C /target/dir -xzf Source box: tar -cz /source/dir | nc Target_Box 2342

Example: (1) On target machine nc -l -p 2342 | tar -C /media/myp_jfs/tilecache -xzf (2) On source machine: tar -cz /home/webgis/tilecache/otomap | nc 192.168.56.1 2342

Try this! tar -c /path/to/dir | ssh remote_server 'tar -xvf - -C /absolute/path/to/remotedir' Restore tar backup over ssh: ssh root@192.168.1.201 "cat /backup/wwwdata.tar.gz" | tar zxvf tar cf - ./acpi_call/ | ssh webgis@wsj "tar xf - -C /home/webgis/test"

tar cvf - /media/myp_jfs/tilecache/otomap/ | ssh www-data@wsj "tar xvf - -C /home/webgis/tilecache"

tar to another machine: tar --rsh-command=`which ssh` -zcvf ruslan@192.168.56.1:/home/ruslan/temp/filename.tar.gz -./basemap_0

You might also like