Differences

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

Link to this comparison view

Both sides previous revision Previous revision
linux:tar [2018/02/15 13:16]
tmade [TAR]
linux:tar [2018/02/26 09:16] (current)
tmade
Line 20: Line 20:
   (cd /orignl/path tar -cf  - . ) | (cd /dst/dir;tar -xvf - )   #tar pipe to copy files, alternate to "cp -Ra"    (cd /orignl/path tar -cf  - . ) | (cd /dst/dir;tar -xvf - )   #tar pipe to copy files, alternate to "cp -Ra" 
   tar -czvf /mnt/test.tgz --one-file-system /                   #stay on filesystem = /dev/, /proc , /sys and all other mountpoints (if there are) aren´t in the file   tar -czvf /mnt/test.tgz --one-file-system /                   #stay on filesystem = /dev/, /proc , /sys and all other mountpoints (if there are) aren´t in the file
-  tar -xzf bar.tar.gz -C /foo                                   #Untar "bar.tar.gz" to "/foo" directory+  tar -xzf bar.tar.gz -C /foo                                   #Untar "bar.tar.gz" to "/foo/*" directory
  
 <code> <code>
linux/tar.txt · Last modified: 2018/02/26 09:16 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki