User Tools

Site Tools


tar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tar [2018/08/20 13:11]
admin
tar [2018/08/20 13:11] (current)
admin
Line 11: Line 11:
   ssh user@box tar czf - /dir1/ > /​destination/​file.tar.g   ssh user@box tar czf - /dir1/ > /​destination/​file.tar.g
 tar to stdout and pass to remote machine via ssh: tar to stdout and pass to remote machine via ssh:
-  tar zcvf - /wwwdata | ssh root@192.168.1.201 ​"cat > /​backup/​wwwdata.tar.gz"​+  tar zcvf - /wwwdata | ssh user@box "cat > /​backup/​wwwdata.tar.gz"​
tar.txt ยท Last modified: 2018/08/20 13:11 by admin