Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed
2006-03-08 11:25:18
On Wednesday, 08.03.2006 at 10:27 -0500, Ian Turner wrote:
> On Wednesday 08 March 2006 06:34, Dave Ewart wrote:
> > In summary: when a directory is *renamed* the files underneath it are
> > not considered to have changed
>
> This does not appear to happen with CVS tar in listed-incremental mode.
> Please
> try upgrading your tar and check if you still see this behaviour.
>
> For reference, this is the test I performed:
>
> $ # Build CVS tar, chdir to src/.
> $ mkdir -p test/foo
> $ touch test/foo/bar
> $ ./tar -cvf test1.tar --listed-incremental test1.incr test
> ./tar: test/foo: Directory is new
> test/
> test/foo/
> test/foo/bar
> $ mv test/foo test/baz
> $ ./tar -cvf test2.tar --listed-incremental test1.incr test
> ./tar: test/baz: Directory is new
> test/
> test/baz/
> test/baz/bar
OK, you've hit the nail on the head:
Using the existing system tar:
$ tar --version
tar (GNU tar) 1.14
$ find
.
./blah
./blah/a
./blah/a/foo
./blah/a/bar
$ tar -cvf test1.tar --listed-incremental test1.incr blah
tar: blah/a: Directory is new
blah/
blah/a/
blah/a/bar
blah/a/foo
$ mv blah/a blah/b
$ tar -cvf test1.tar --listed-incremental test1.incr blah
tar: blah/b: Directory is new
blah/
blah/b/
And using a rebuilt version from a more recent source:
$ ~/src/tar-1.15.1/src/tar --version
tar (GNU tar) 1.15.1
$ ~/src/tar-1.15.1/src/tar -cvf test1.tar --listed-incremental test1.incr
blah
/home/davee/src/tar-1.15.1/src/tar: blah/a: Directory is new
blah/
blah/a/
blah/a/bar
blah/a/foo
$ mv blah/a blah/b
$ ~/src/tar-1.15.1/src/tar -cvf test1.tar --listed-incremental test1.incr
blah
/home/davee/src/tar-1.15.1/src/tar: blah/b: Directory is new
blah/
blah/b/
blah/b/bar
blah/b/foo
A new tar is indeed the answer it seems.
Many thanks, people.
Dave.
--
Dave Ewart
davee AT ceu.ox.ac DOT uk
Computing Manager, Cancer Epidemiology Unit
Cancer Research UK / Oxford University
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016
signature.asc
Description: Digital signature
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, (continued)
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Dave Ewart
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Gene Heskett
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Dave Ewart
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Gene Heskett
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Matt Hyclak
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Gene Heskett
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Matt Hyclak
- Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Dave Ewart
Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Ian Turner
Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Ian Turner
Re: If most recent backup is not level 0, recovery fails to bring back all files when directories have been renamed, Michael Loftis
|
|
|