Afio archiver is more robust than tar, because afio compresses each file in the archive instead of the archive file itself. But afio has no ability to compress the header that includes filename, size, timestamp, and so on. This becomes serious problem when afio creates encrypted archive.
# create $ find secret_dir | \ afio -ovUZ -Penc_prg secret.afz secret_dir -- okay secret_dir/customer_name.docx.z -- (88%) # snoop $ strings secret.afz | \ head -2 | tail -1 | tr -d "0-9" secret_dir/customer_name.docx.z # OOPS!
Patched version of afio on this page is able to compress the header with new option "-N".
$ find secret_dir | \ afio -ovUZ -C1 -N -Penc_prg secret.afz secret_dir -- okay secret_dir/customer_name.docx.z -- (88%) $ strings secret.afz | \ head -2 | tail -1 | tr -d "0-9" A;Salted__c # OK, header was encrypted.
Unless explicitly stated, afio patch provided by this page is covered by the MIT License.
The license of original afio is a bit complex. See comments of afio.c file.
- modified: man file.
- initial version.