linux:tar
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:tar [2022/06/06 05:46] – levor | linux:tar [2024/03/23 16:59] (current) – levor | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ^Example^Explanation / Remarks^ | ^Example^Explanation / Remarks^ | ||
| - | |tar -czvf / | + | |tar -czvf / |
| |tar -xzvf / | |tar -xzvf / | ||
| - | |find /var/log -iname ' | + | |**Using find:**|| |
| + | |find /var/log -iname ' | ||
| + | |find . -type f > list_of_files.txt && tar -czf bu_file.tar.gz -T list_of_files.txt|| | ||
| + | |find . -type f -exec tar -czf {}.tar.gz {} \;|!<- TODO! FIXME| | ||
| ^Flag^Same as^Explanation / Remarks^ | ^Flag^Same as^Explanation / Remarks^ | ||
| Line 12: | Line 15: | ||
| |r|%%--%%append|append file(s) to tar file| | |r|%%--%%append|append file(s) to tar file| | ||
| |t|%%--%%list|list contents of file| | |t|%%--%%list|list contents of file| | ||
| + | |T| |next param is filename containing list of files to be **tar**ed(!) <- TODO FIXME| | ||
| |v| |verbose output - show details while running| | |v| |verbose output - show details while running| | ||
| |x| |extract compressed file| | |x| |extract compressed file| | ||
linux/tar.1654494380.txt.gz · Last modified: 2022/06/06 05:46 by levor
