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

nodump on Linux



I'm using tarsnap 1.0.30 on Ubuntu 11.04 and I'm a bit confused about when 
the nodump flag is honoured. 

It only seems to work with the first layer of directories:

# uname -a
Linux stag 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:02:55 UTC 2011 
x86_64 x86_64 x86_64 GNU/Linux

# cd tarsnap-test
# mkdir d1 d2 d3 d3/s1
# touch d1/a d1/b d2/a d2/b d3/a d3/b d3/s1/a d3/s1/b
# chattr +d d2 d3/s1

# cd ..
# tarsnap -cvf tarsnap-test1 tarsnap-test/
a tarsnap-test
a tarsnap-test/d1
a tarsnap-test/d2
a tarsnap-test/d3
a tarsnap-test/d3/s1
a tarsnap-test/d3/b
a tarsnap-test/d3/a
a tarsnap-test/d3/s1/b
a tarsnap-test/d3/s1/a
a tarsnap-test/d2/b
a tarsnap-test/d2/a
a tarsnap-test/d1/b
a tarsnap-test/d1/a

(i.e. d2 and d3/s1 are both backed up despite their nodump flags)

# cd tarsnap-test
tarsnap-test# tarsnap -cvf tarsnap-test2 .
a .
a ./d1
a ./d3
a ./d3/s1
a ./d3/b
a ./d3/a
a ./d3/s1/b
a ./d3/s1/a
a ./d1/b
a ./d1/a

(now d2 is not backed up but d3/s1 still is)

Am I approaching this the wrong way?

Thanks,

David Adam
zanchey@ucc.gu.uwa.edu.au