[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Alternative to tar?



Gaël DONVAL wrote:
> Do you know of any lighter/simpler alternative to the tar program?
> tar preserves permissions, time stamps, etc. and this is great in some
> cases. But in other cases, one just wants a simple way to concatenate
> files.

The old 'ar' archive is fairly lightweight.  Couple that with 'lzip'
and you would have a fast and light combination.

  $ ar cru somename.ar file1 file2 file3
  $ lzip somename.ar

Here is a simple test using some small files:

  $ date > one
  $ date -R > two
  $ date +%s > three
  $ ar cru foo.ar one two three
  $ lzip foo.ar
  $ ar cru foo.ar one two three
  $ xz foo.ar
  $ tar caf foo.tar.gz one two three
  $ tar caf foo.tar.gz one two three
  $ tar caf foo.tar.lz one two three
  $ ls -log
  total 24
  -rw-rw-r-- 1 151 Jul 25 11:46 foo.ar.lz
  -rw-rw-r-- 1 184 Jul 25 11:51 foo.ar.xz
  -rw-rw-r-- 1 216 Jul 25 11:46 foo.tar.gz
  -rw-rw-r-- 1 234 Jul 25 11:45 foo.tar.lz
  -rw-rw-r-- 1 224 Jul 25 11:45 foo.tar.xz
  -rw-rw-r-- 1  29 Jul 25 11:45 one
  -rw-rw-r-- 1  11 Jul 25 11:45 three
  -rw-rw-r-- 1  32 Jul 25 11:45 two

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: