afio

from Wikipedia, the free encyclopedia

afio is a command under Unix - operating systems for file archiving . afio is an alternative implementation of the cpio command and uses an archive format similar to the cpio data format, which is usually given the file extension .cpio .

The afio project was started in 1985 by Mark Brukhartz at Lachman Associates and, after extensions by a few others, was most recently headed by Koen Holtman and published by the latter under LGPL license. However, the legality of this license is controversial because the original source code was published under a license that is not compatible with the LGPL. As a result, the Free Software Foundation has removed afio from its software directory.

The last version is afio-2.5 ​​and was released by Koen Holtman in December 2003.

Advantages over cpio

afio handles input data errors more generously than cpio . The data compression is file-based and is therefore implemented differently than typically with cpio and tar . Furthermore, afio supports the interactive creation of multivolume archives and, unlike cpio, afio is not subject to the 4 GB or 8 GB limit for archive files, which however leads to compatibility problems due to the archive format changing in the middle of the archive.

Functionality and example calls

afio has four basic functions, which have the options -o ("copy-out mode", creating an archive), -i ("copy-in mode", extracting from an archive), -t (displaying the archive) Content) and -r (checking data consistency) must be specified.

Create an archive that contains the files of the current directory:

ls | afio -o verzeichnis.cpio

Generate a cpio file that contains the files and subdirectories of the current directory:

find . -print -depth | afio -o verzeichnis.cpio

Restoring files from a cpio archive:

afio -i archiv.cpio

List the files contained in the archive without extracting them:

afio -t archiv.cpio

Comparison of the files contained in the archive with the files of the same name in the file system:

afio -r archiv.cpio

See also

Web links

Individual evidence

  1. Tom Callaway: in this post, i rant about licensing on livejournal.com, December 12, 2008
  2. Brett Smith: http://lwn.net/Articles/312276/ on lwn.net, December 19, 2008