tar -czvf <file>.tgz <dir>
tar -xzvf <file>.tgz [fichero o directorio a extraer]
tar --create --file - --posix --gzip – <dir> | openssl enc -e -aes256 -out <file>
?openssl enc -d -aes256 -in <file> | tar –extract –file - –gzip
gunzip -t fichero.tar.gz
→ solo comprobamos la compresióngunzip -c fichero.tar.gz | tar t > /dev/null
→ comprobamos la compresión y el tar, pero descartamos la salidatar cpf /path/to/complete-file.tar -g /path/to/register.snar /path/backup
tar cpf /path/to/incremental-file.tar -g /path/to/register.snar /path/backup
tar ztf /path/to/file.tar.gz | xargs -d'\n' rm -v
: eliminar los ficheros de una extración incorrecta de un TARtar … --exclude=/path/to/dir
tar … -X /path/to/exclude-list.txt
tar … --exclude-from «exclude-list.txt»
tar … --exclude-tag-all=exclude.tag
: establece un fichero que sirve para indicar que no ha de hacer backup de ese directorio