Jump to content

Archive file

From Wikipedia, the free encyclopedia
(Redirected from File spanning)

An archive file stores the content of one or more computer files, possibly compressed and/or encrypted, with associated metadata such as file name, directory structure, error detection and correction information, and commentary. An archive file is often used to facilitate portability, distribution and backup, and to reduce storage use.[1][2][3] An archive file is usually generated and modified via a file archiver utility.

Applications

[edit]

Portability

[edit]

As an archive file stores file system information, including file content and metadata, it can be leveraged for file system content portability across heterogeneous systems. For example, a directory tree can be sent via email, files with unsupported names on the target system can be renamed during extraction, timestamps can be retained rather than lost during data transmission.[4] Also, transfer of a single archive file may be faster than processing multiple files due to per-file overhead,[5][6] and even faster if compressed.

Software distribution

[edit]

Beyond archiving, archive files are often used for software distribution. When used in connection with a package manager, an archive must conform to a package format and is called a package. In particular, the format usually requires a manifest file.[7] Examples include deb for Debian, JAR for Java, APK for Android, and self-extracting Windows Installer executables.

Features

[edit]

Notable features supported for various archives include:

Error detection and recovery

[edit]

Archive files often include parity checks and other checksums for error detection, for instance zip files use a cyclic redundancy check (CRC). RAR archives may include additional error correction data (called recovery records).[8]

Archive files that do not natively support recovery records can use separate parchive (PAR) files that allows for additional error correction and recovery of missing files in a multi-file archive.[9]

File spanning

[edit]

File spanning is the ability to package a single file or data stream into separate files of a specified size. This task implies the ability to re-combine the package files back into the original file or data stream.[10] This is useful when saving large files onto smaller volumes or breaking large files up into smaller files for network messages of limited size (email, newsgroups). It also allows the creation of parity files such as parchive (PAR) to verify and restore missing or corrupted package files. Another advantage with this is coping with file size limits on some file systems of removable media, or coping with volume size limits of things like floppy disks.[11] Sometimes the file spanning process is hidden as a secondary operation such as with file archivers. In this case, many smaller files are first packaged into a data stream and then repackaged into a multi-file archive.

Many file spanning utilities are available for nearly every OS and platform. Below are a few examples:

Format

[edit]

Some archive file formats are well-defined and some have become conventions supported by multiple vendors and communities.[12] As is common for all files, the format of an archive is generally indicated by file name extension and/or file header.[13]

Commonly used formats include zip, rar, 7z, and tar.[14] Java introduced archive formats including jar (j for Java) and war (w for web) that store an entire runnable deployment, usually compressed.[15]

See also

[edit]

References

[edit]
  1. ↑ "Archive File: What it's Used For". Lifewire. Archived from the original on 2024-07-11. Retrieved 2022-06-17.
  2. ↑ "Archive files". www.ibm.com. 2015-02-07. Archived from the original on 2023-09-07. Retrieved 2022-06-17.
  3. ↑ "What is Archiving And Why is it Important?". Secure Data MGT. 2015-03-23. Archived from the original on 2022-05-24. Retrieved 2022-06-17.
  4. ↑ "Data Portability and Platform Competition | Is User Data Exported From Facebook Actually Useful to Competitors?". Archive.org. November 2019. p. 22. Retrieved June 17, 2022.
  5. ↑ "Why file transfer speeds of small vs large files could be different". NetApp Knowledge Base. 2020-06-17. Archived from the original on 2022-01-01. Retrieved 2022-06-17.
  6. ↑ "Why Small Files Take Longer to Copy Than Large Files". Dataquest. 2018-10-10. Archived from the original on 2022-07-02. Retrieved 2022-06-17.
  7. ↑ Ashbel, Amit. "Data Archiving: The Basics and 5 Best Practices". cloud.netapp.com. Archived from the original on 2022-01-19. Retrieved 2022-06-17.
  8. ↑ Drummond, James R. (1997). Parity, Checksums and CRC Checks (PDF) (1st ed.). Toronto. p. 13. Archived (PDF) from the original on 2020-10-31. Retrieved 2022-06-17.{{cite book}}: CS1 maint: location missing publisher (link)
  9. ↑ text. "What are PAR and PAR2 Files?". Easynews. Archived from the original on 2024-07-11. Retrieved 2022-06-17.
  10. ↑ "appnote.md". p1k.se. Retrieved 2026-10-13.
  11. ↑ "RAR Archive File Format Family". wwws.loc.gov. 2017-03-28. Retrieved 2026-10-13.
  12. ↑ "What are Archive Files?". www.exefiles.com. Archived from the original on 2022-05-28. Retrieved 2022-06-17.
  13. ↑ "What Is a File Extension & Why Are They Important?". Lifewire. Archived from the original on 2022-06-03. Retrieved 2022-06-17.
  14. ↑ "Common file name extensions in Windows". support.microsoft.com. Archived from the original on 2022-05-27. Retrieved 2022-06-17.
  15. ↑ Malefanem, Moses. "Learning Java Network Programming". Archived from the original on 2023-09-07. Retrieved 2022-06-17.