On Thu, May 17, 2001 at 05:09:16PM -0300, Alexandre Oliva wrote:
> On May 17, 2001, Ron Stanonik <[EMAIL PROTECTED]> wrote:
>
> > Sorry for the newbie question, but how can tar be configured so
> > that after restoring a full and an incremental the filesystem has
> > exactly the files at the time of the incremental, not any files
> > which were present during the full but removed before the incremental.
>
> Use -G at restore time. From the GNU tar manual:
>
> `--incremental' (`-G') in conjunction with `--extract' (`--get',
> `-x') causes `tar' to read the lists of directory contents previously
> stored in the archive, _delete_ files in the file system that did not
> exist in their directories when the archive was created, and then
> extract the files in the archive.
>
> This behavior is convenient when restoring a damaged file system from
> a succession of incremental backups: it restores the entire state of
> the file system to that which obtained when the backup was made. If
> `--incremental' (`-G') isn't specified, the file system will probably
> fill up with files that shouldn't exist any more.
Is this an option amrecover can (or does) pass to tar?
Thanks, by the way, for the words to the wise on "dump".
--
-----------------------------------------------------------------
Dan Wilder <[EMAIL PROTECTED]> Technical Manager & Editor
SSC, Inc. P.O. Box 55549 Phone: 206-782-8808
Seattle, WA 98155-0549 URL http://embedded.linuxjournal.com/
-----------------------------------------------------------------