[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: : Re: [Bug-tar] Problem with --listed-incremental and --one-file-sys
From: |
Martin Simmons |
Subject: |
Re: : Re: [Bug-tar] Problem with --listed-incremental and --one-file-system |
Date: |
Thu, 8 Apr 2004 01:13:15 +0100 (BST) |
>>>>> On Wed, 07 Apr 2004 09:57:43 +0300, Sergey Poznyakoff <address@hidden>
>>>>> said:
Sergey> Chris Schanzle <address@hidden> wrote:
>> While doing a test disaster recovery with a Fedora Linux box that has
>> /boot and / as separate filesystems, I discovered that during the
>> restore of the first incremental, the contents of /boot were removed.
>> Below is a similar test to illustrate my problem. Did I find a bug or
>> just a new mistake in my methods?
Sergey> When restoring from an incremental backup, tar attempts to restore the
Sergey> exact state in which the filesystem was when the backup was made. That
Sergey> includes deleting any files that are not in the backup.
I'm only half convinced. The trouble is that incremental archives created
with the --one-file-system option record mount points as if they are empty
directories, causing restore to delete files that couldn't possibly be in the
backup.
Suggestion: maybe gnu_restore() should take account of the --one-file-system
option to avoid deleting files in mounted filesystems?
__Martin