Home > afio > afio -9

afio(1) -9
manipulate archives and files
-9           Do not round down any -s volume sizes to the nearest -b block size.  See the -s option.

Related

-s size Restrict each portion of a multi-volume archive to size characters. This option recognizes the same size suffices as -b. Also, the suffix x denotes a multiple of the -b block size (and must follow any -b specification). size can be a single size or a comma-seperated list of sizes, for example '2m,5m,8m', to specify different sizes for the subsequent volumes. If there are more volumes than sizes, the last specified size is used for all remaining volumes. This option is useful with finite-length devices which do not return short counts at end of media (sigh); output to magnetic tape typically falls into this category. When an archive is being read or written, using -s causes afio to prompt for the next volume if the specified volume length is reached. The -s option will also cause afio to prompt if there is a premature EOF while reading the input. The special case -s 0 will activate this prompting for the next volume on premature EOF without setting a volume length. When writing an archive, afio will prompt for the next volume on end-of-media, even without -s 0 being supplied, if the device is capable of reporting end-of-media. If the volume size specified is not a multiple of the block size set with the -b option, then afio(1) will silently round down the volume size to the nearest multiple of the block size. This rounding down can be suppressed using the -9 option: if -9 is used, afio(1) will write a small block of data, smaller than the -b size, at the end of the volume to completely fill it to the specified size. Some devices are not able to handle such small block writes.

Examples

Create an archive with compressed files: find .... | afio -o -v -Z /dev/fd0H1440
Install (unpack) an archive with compressed files: afio -i -v -Z achive
Install (unpack) an archive with compressed files, protecting newer existing files: afio -i -v -Z -n achive
Create an archive with compressed files on floppy disks: find .... | afio -o -v -s 1440k -F -Z /dev/fd0H1440
Create an archive with all file contents encrypted by pgp: export PGPPASSFD=3 find .... | afio -ovz -Z -U -P pgp -Q -fc -Q +verbose=0 -3 3 archive 3<passphrasefile
Create an archive on recordable CDs using the cdrecord utility to write each CD: find .... | afio -o -b 2048 -s325000x -v '!cdrecord .... -'
Extract a single named file from an archive on /dev/tape: afio -i -v -Z -y /home/me/thedir/thefile /dev/tape (If these do not exist yet, afio will also create the enclosing directories home/me/myfiledir under current working directory.)
Extract files matching a pattern from an archive on /dev/tape: afio -i -v -Z -y '/home/me/*' /dev/tape (If these do not exist yet, afio will also create the enclosing directories home/me under current working directory.)
If your filesystem cannot handle files larger than 2GB, but you want to make an archive on that filesystem that is larger than 2GB, you use the following trick to split the archive into multiple files of each 1 GB: find /home | afio -o ... - | split -b1024m - archive. the files will be called archive.aa, archive.ab, etc. You can restore the whole archive using: cat archive.* | afio -i ... - The wildcard expansion by the shell will ensure that cat will read the parts in the right (alphabetic) order.

Tips or Questions?

More Commands:


Powered by ExplainShell