public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Bad day with xfsrestore, what went wrong?
@ 2008-10-19  1:13 Michael Lueck
  2008-10-27  2:22 ` Michael Lueck
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Lueck @ 2008-10-19  1:13 UTC (permalink / raw)
  To: linux-xfs

Greetings-

I hope this is the NNTP equiv of the email list found on this web page:
http://oss.sgi.com/projects/xfs/

I have been using XFS with Debian for a number of years with great success. Today, xfsrestore really threw me a curve ball. I am wondering what went wrong.

I had wanted to restore from an old backup some directories that I discovered I had need of. I used the following syntax to get the restore started:

xfsrestore -J -E -f /mnt/ext_backup/ldslnx01/20061220/data -s shares/data -i -v verbose /srv

I selected some directories to restore through the interactive interface, then allowed it to restore the specified files.

What it ended up doing, HOWEVER, was to restore every file present in that old backup that was no longer on disk!

Thus, what went wrong?

Thanks!

-- 
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bad day with xfsrestore, what went wrong?
  2008-10-19  1:13 Bad day with xfsrestore, what went wrong? Michael Lueck
@ 2008-10-27  2:22 ` Michael Lueck
  2008-10-27 22:23   ` Bill Kendall
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Lueck @ 2008-10-27  2:22 UTC (permalink / raw)
  To: linux-xfs

No suggestions / possible answers anyone for my question...

Michael Lueck wrote:
> Greetings-
> 
> I hope this is the NNTP equiv of the email list found on this web page:
> http://oss.sgi.com/projects/xfs/
> 
> I have been using XFS with Debian for a number of years with great 
> success. Today, xfsrestore really threw me a curve ball. I am wondering 
> what went wrong.
> 
> I had wanted to restore from an old backup some directories that I 
> discovered I had need of. I used the following syntax to get the restore 
> started:
> 
> xfsrestore -J -E -f /mnt/ext_backup/ldslnx01/20061220/data -s shares/data -i -v verbose /srv
> 
> I selected some directories to restore through the interactive 
> interface, then allowed it to restore the specified files.
> 
> What it ended up doing, HOWEVER, was to restore every file present in 
> that old backup that was no longer on disk!
> 
> Thus, what went wrong?
> 
> Thanks!

-- 
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bad day with xfsrestore, what went wrong?
  2008-10-27  2:22 ` Michael Lueck
@ 2008-10-27 22:23   ` Bill Kendall
  2008-10-27 23:59     ` Michael Lueck
  0 siblings, 1 reply; 6+ messages in thread
From: Bill Kendall @ 2008-10-27 22:23 UTC (permalink / raw)
  To: mlueck; +Cc: linux-xfs

Michael Lueck wrote:
> No suggestions / possible answers anyone for my question...
> 
> Michael Lueck wrote:
>> Greetings-
>>
>> I hope this is the NNTP equiv of the email list found on this web page:
>> http://oss.sgi.com/projects/xfs/
>>
>> I have been using XFS with Debian for a number of years with great 
>> success. Today, xfsrestore really threw me a curve ball. I am 
>> wondering what went wrong.
>>
>> I had wanted to restore from an old backup some directories that I 
>> discovered I had need of. I used the following syntax to get the 
>> restore started:
>>
>> xfsrestore -J -E -f /mnt/ext_backup/ldslnx01/20061220/data -s 
>> shares/data -i -v verbose /srv
>>
>> I selected some directories to restore through the interactive 
>> interface, then allowed it to restore the specified files.
>>
>> What it ended up doing, HOWEVER, was to restore every file present in 
>> that old backup that was no longer on disk!
>>
>> Thus, what went wrong?
>>
>> Thanks!
> 

Hi Michael,

I tried to reproduce this using the command line you supplied, but
everything worked as expected for me. Perhaps try it without the -i
(so that only subtrees given with -s are restored), just to rule out
the possibility that you inadvertently added all files to the restore
list.

Bill

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bad day with xfsrestore, what went wrong?
  2008-10-27 22:23   ` Bill Kendall
@ 2008-10-27 23:59     ` Michael Lueck
  2008-10-28  2:10       ` Timothy Shimmin
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Lueck @ 2008-10-27 23:59 UTC (permalink / raw)
  To: linux-xfs

Bill Kendall wrote:

> I tried to reproduce this using the command line you supplied, but
> everything worked as expected for me.

Glad to hear that. Seems my tried and true syntax _can_ still work.

> Perhaps try it without the -i (so that only subtrees given with -s are restored), just to rule out
> the possibility that you inadvertently added all files to the restore list.

Enough putzing with a production server I think.

It was odd that it only put back files present in that old backup set and did not overwrite everything... thankfully!

Anyway, thanks for checking / verifying my usual restore syntax that it is the correct syntax.

-- 
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bad day with xfsrestore, what went wrong?
  2008-10-27 23:59     ` Michael Lueck
@ 2008-10-28  2:10       ` Timothy Shimmin
  2008-10-28  2:16         ` Michael Lueck
  0 siblings, 1 reply; 6+ messages in thread
From: Timothy Shimmin @ 2008-10-28  2:10 UTC (permalink / raw)
  To: mlueck; +Cc: linux-xfs

Hi Michael,

Michael Lueck wrote:
> xfsrestore -J -E -f /mnt/ext_backup/ldslnx01/20061220/data -s shares/data -i -v verbose /srv 
> Bill Kendall wrote:
> 
>> I tried to reproduce this using the command line you supplied, but
>> everything worked as expected for me.
> 
> Glad to hear that. Seems my tried and true syntax _can_ still work.
> 
>> Perhaps try it without the -i (so that only subtrees given with -s are
>> restored), just to rule out
>> the possibility that you inadvertently added all files to the restore
>> list.
> 
> Enough putzing with a production server I think.
> 
> It was odd that it only put back files present in that old backup set
> and did not overwrite everything... thankfully!
> 
Maybe the -E option helped you out there.

  -E   Prevents  xfsrestore from overwriting newer versions of files.  
  The inode modification time of the on-media file is com‐
  pared to the inode modification time of corresponding file in the dest directory.  
  The file is restored only if the  on-media  version  is newer than the version
  in the dest directory.  The inode modification time of a file can be displayed
  with the ls -lc command.

--Tim

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bad day with xfsrestore, what went wrong?
  2008-10-28  2:10       ` Timothy Shimmin
@ 2008-10-28  2:16         ` Michael Lueck
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Lueck @ 2008-10-28  2:16 UTC (permalink / raw)
  To: linux-xfs

Timothy Shimmin wrote:
> Maybe the -E option helped you out there.
> 
>   -E   Prevents  xfsrestore from overwriting newer versions of files.  

fffffeeeeeeeewwwwwwwwww!!!!!!!!!!! :-)

Thank you Tim! You put a smile on my face.

I worked out that syntax about 5 years ago, keep it in a text file, update as needed, and paste it into an SSH session. That is why I was so surprised that "something" went wrong.

Thanks again!

-- 
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-28  2:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-19  1:13 Bad day with xfsrestore, what went wrong? Michael Lueck
2008-10-27  2:22 ` Michael Lueck
2008-10-27 22:23   ` Bill Kendall
2008-10-27 23:59     ` Michael Lueck
2008-10-28  2:10       ` Timothy Shimmin
2008-10-28  2:16         ` Michael Lueck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox