User Tools

Site Tools


linux:tar

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:tar [2023/05/29 11:55] – external edit 127.0.0.1linux:tar [2024/10/22 12:49] (current) – [Tar/gzip examples] Wulf Rajek
Line 12: Line 12:
 </code> </code>
  
 +Backup of a directory on local system, storing on remote system
 +<code>
 +tar zcvf - /your/directory | ssh backup-user@backupserver "cat > /backup/file.tgz"
 +</code>
  
 +Extract remote archive to local system:
 +<code>ssh remotehost cat /path/to/foo.tar.gz | tar xzf -</code>
 +
 +===== Complete dd disk image =====
  
 Complete disk image of remote server to local compressed image file via ssh Complete disk image of remote server to local compressed image file via ssh
linux/tar.1685357734.txt.gz · Last modified: 2023/05/29 11:55 by 127.0.0.1