Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
linux:tar [2018/02/15 13:16] – [TAR] tmade | linux:tar [2018/02/26 09:16] (current) – tmade |
---|
(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> |