On Wed, Oct 25, 2017 at 01:33:53PM +1100, Jobst Schmalenbach wrote:
> Hi
> How can I see the contents of gnutar-list files?
> 
> I tried tar/gunzip, ckecked amadmin etc but it seems I cannot read the 
> content.
> 
> Need to know whats in those files to see whether my inclusion/exclusion list 
> is correct and why it takes too much time to backup one particular host.
> 
gnutar has had several formats for the gnutar list incremental files.
Starting with about version 1.16 the format included null bytes.

It is not pretty, but this awk command can make the file readable.

  awk 'BEGIN{RS="[\n\0]" ; ORS="\n"} {print}'  <gtar_incr_list_filename>

The output is grouped by directories, here are two examples.

0
1483174597
191920908
64768
2374981
./usr/share/doc/amanda-3.3.3       <= the directory path
YCOPYRIGHT                         <=   ordinary files
YNEWS                              <=   in the directory
YREADME


0
1471672919
831712838
64768
5505376
./usr/src/kernels/3.10.0-327.28.3.el7.x86_64/arch/mips/bcm63xx
YKconfig
YMakefile
Dboards                            <= a subdirectory


HTH
Jon
-- 
Jon H. LaBadie                 j...@jgcomp.com
 11226 South Shore Rd.          (703) 787-0688 (H)
 Reston, VA  20190              (703) 935-6720 (C)

Reply via email to