[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Incremental extract improvement
From: |
Ian Turner |
Subject: |
Re: [Bug-tar] Incremental extract improvement |
Date: |
Mon, 22 May 2006 14:07:03 -0400 |
User-agent: |
KMail/1.8.2 |
On Tuesday 16 May 2006 18:16, Helmut Waitzmann wrote:
> As tar stores all file names of a directory (regardless of whether the
> files themselves are stored in the incremental archive or not), it
> /knows/ which files are to be deleted when incremental extracting an
> incremental archive: It simply deletes all files which names are
> /not/ in the incremental archive, thus truly applying the changes,
Ah, but here's the rub: This step only truly applies the changes from the
incremental archive, if there were no other unrelated files in the directory.
Consider the following example:
$ mkdir foo
$ touch foo/bar
$ tar -cvf test.tar --listed-incremental=listing foo/
foo/
foo/bar
$ rm foo/bar
$ touch foo/baz
$ tar -cvf test2.tar --listed-incremental=listing foo/
foo/
foo/baz
$ touch foo/bat
$ tar -xvf test2.tar --listed-incremental foo/
foo/
foo/baz
$ ls foo
baz
The point here is that the last execution of tar did /not/ truly apply the
changes from the incremental archive; instead, it made a completely unrelated
change by deleting the file foo/bat, which had never been mentioned before.
IMHO it should be possible to extract an incremental archive in such a way as
to truly get /only/ the changes from that archive, but I don't think the
required information is really there.
Cheers,
--Ian
--
Zmanda: Open Source Data Protection and Archiving.
http://www.zmanda.com
- Re: [Bug-tar] Incremental extract improvement, (continued)
- Re: [Bug-tar] Incremental extract improvement, Sergey Poznyakoff, 2006/05/10
- Re: [Bug-tar] Incremental extract improvement, Ian Turner, 2006/05/10
- Re: [Bug-tar] Incremental extract improvement, Sergey Poznyakoff, 2006/05/10
- Re: [Bug-tar] Incremental extract improvement, Ian Turner, 2006/05/11
- Re: [Bug-tar] Incremental extract improvement, Sergey Poznyakoff, 2006/05/12
- Re: [Bug-tar] Incremental extract improvement, Ian Turner, 2006/05/15
- Re: [Bug-tar] Incremental extract improvement, Sergey Poznyakoff, 2006/05/16
- Re: [Bug-tar] Incremental extract improvement, Helmut Waitzmann, 2006/05/15
- Re: [Bug-tar] Incremental extract improvement, Ian Turner, 2006/05/16
- Re: [Bug-tar] Incremental extract improvement, Helmut Waitzmann, 2006/05/16
- Re: [Bug-tar] Incremental extract improvement,
Ian Turner <=
- Re: [Bug-tar] Incremental extract improvement, Helmut Waitzmann, 2006/05/26
- Re: [Bug-tar] Incremental extract improvement, Paul Eggert, 2006/05/26
- Re: [Bug-tar] Incremental extract improvement, Helmut Waitzmann, 2006/05/27
RE: [Bug-tar] Incremental extract improvement, John McDole, 2006/05/16