xfs
[Top] [All Lists]

Re: xfsdump vs tar

To: Dan Swartzendruber <dswartz@xxxxxxxxxx>
Subject: Re: xfsdump vs tar
From: Steve Lord <lord@xxxxxxx>
Date: Tue, 12 Jun 2001 13:50:18 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Message from Dan Swartzendruber <dswartz@xxxxxxxxxx> of "Tue, 12 Jun 2001 12:38:31 EDT." <5.1.0.14.2.20010612123605.040c6cb8@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> 
> The common wisdom is that dump is dangerous to run on mounted 
> filesystems.  I do so for weekly backups
> on my home system, because it is scheduled for 2AM on Sunday morning, when 
> things are relatively idle.
> I note from the man pages that xfsdump can only be run (apparently) on 
> mounted filesystems.  Is there
> anything fundamentally different about the implementation of xfsdump (for 
> linux specifically) as opposed to the
> other dump programs (such as for ext2 filesystems) that makes this "safer"?
> 

xfsdump does not use the block device interface to get to inodes, it
uses a couple of special calls - one to scan all the inodes in the
filesystem and one to open those inodes without using path names,
should an inode change in between the two accesses then it is not
placed in the dump. File data is read using the read system call,
directory contents via getdents.

So there is no issue with xfsdump looking under the covers the way the
regular dump program does. There is an issue with xfsdump missing files
created during the dump process - but the next dump should catch those.

Steve



<Prev in Thread] Current Thread [Next in Thread>