Skip to content

A command line utility that merges multiple tar files into a single archive. Avoids duplicate files via a set of predetermined constraints.

Notifications You must be signed in to change notification settings

jmemcc/mergetars

 
 

Repository files navigation

Mergetars

Mergetars is a command-line utility program that merges the contents of multiple .tar archive files into a single archive.

If Mergetars finds the same file in multiple archives, it will eliminate duplicates according to a predetermined order of precedence (see 'File Precedence').

Usage

mergetars [-v] input_archive1.tar [input_archive2.tar ... ] output_file.tar

You can supply as many archive files as necessary, as long as you specify a novel output tarfile name as the final argument.

Verbosity

Users can turn on verbose mode with the -v flag. This will print information to stdout about the program's operation.

Error messages are printed to stdout by default.

File Precedence

If Mergetars finds the same file in multiple archives, it will only save the one that was modified last.

If the duplicate files have the same modification time, it will select the larger file. If utime and size are the same, it will choose the file in order of command line precedence.

Authors

Steve Clarke

Jamie McCullough

About

A command line utility that merges multiple tar files into a single archive. Avoids duplicate files via a set of predetermined constraints.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.6%
  • Makefile 2.4%