Skip to contentSkip to conversation

Bad day with xfsrestore, what went wrong?

DISCUSSION Michael Lueck 3 participants 6 messages Oct 19, 2008 – Oct 28, 2008

lore
Share & tools
lore
#0 lore raw

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!

Signature · 3 lines
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/
#1 lore raw

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

Quoted 18 lines · Michael Lueck

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!

Signature · 3 lines
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/
#2 lore raw
Quoted 22 lines · Michael Lueck

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

Quoted 18 lines · Michael Lueck

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

#3 lore raw
Quoted 2 lines · Bill Kendall

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.

Quoted 2 lines

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.

Signature · 3 lines
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/
#4 lore raw

Hi Michael,

Quoted 13 lines · Michael Lueck

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

Quoted 2 lines · Bill Kendall

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.

Quoted 4 lines

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.

Quoted 5 lines

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

#5 lore raw
Quoted 3 lines · Timothy Shimmin

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!

Signature · 3 lines
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/