COMPRIMERE
Code:
tar --exclude='folder' -pvczf BackupName.tar.gz /path/to/directoryToBackup
p = preserve permissions, this will where possible preserve permissions, owners, file flags and ACL’s
v = verbose, show you exactly what it is doing
c = create, this means it will create a new tar file
z = use gzip to compress the resulting tar file
f = use the following filename
ESTRARRE
Code:
tar -zxvf file.tar.gz