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 - –gzipgunzip -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/backuptar cpf /path/to/incremental-file.tar -g /path/to/register.snar /path/backuptar 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/dirtar … -X /path/to/exclude-list.txttar … --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