linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Silent skipping of file during xfsrestore
@ 2016-11-28  1:49 Will Dormann
  2016-11-28  1:59 ` Dave Chinner
  0 siblings, 1 reply; 11+ messages in thread
From: Will Dormann @ 2016-11-28  1:49 UTC (permalink / raw)
  To: linux-xfs

Hi folks,

I recently did a restore of a xfsdump backup and I noticed that an
important file was missing after the restore completed.  I tried going
back in using interactive mode to see what was up:

-----

 -> ls /etc/mythtv
            4032 session-settings
         4127166 session-settings~
        50343916 config.xml
         4884092 mysql.txt~

 -> add /etc/mythtv

 -> extract

 --------------------------------- end dialog
---------------------------------

xfsrestore: mkdir etc
xfsrestore: mkdir etc/mythtv
xfsrestore: dump session label: ""
xfsrestore: dump session id: f132cc65-5bd4-4a58-a810-52398fe99326
xfsrestore: stream 0, object 0, file 0
xfsrestore: restoring non-directory files
xfsrestore: media file 0 in object 0 of stream 0
xfsrestore: restoring etc/mythtv/session-settings (4032 221708883)
xfsrestore: restoring regular file ino 4032 etc/mythtv/session-settings
xfsrestore: truncating etc/mythtv/session-settings from 0 to 1170
xfsrestore: restoring etc/mythtv/session-settings~ (4127166 4079738789)
xfsrestore: restoring regular file ino 4127166 etc/mythtv/session-settings~
xfsrestore: truncating etc/mythtv/session-settings~ from 0 to 1169
xfsrestore: restoring etc/mythtv/mysql.txt~ (4884092 1828724895)
xfsrestore: restoring regular file ino 4884092 etc/mythtv/mysql.txt~
xfsrestore: truncating etc/mythtv/mysql.txt~ from 0 to 99
xfsrestore: restore complete: 125 seconds elapsed
xfsrestore: Restore Status: SUCCESS
root@jerky:/mnt/rescue#


-----


Note that the file "config.xml" is present in the directory listing, but
when the restore completes with a SUCCESS status, that file is *not*
present.

My backup command is:
xfsdump -e -l0 - / | pigz > $backupdir/mythbuntu.dgz

My restore command is:
pigz -d -c mythbuntu.dgz | xfsrestore -p 10 -r - /mnt/restore


I don't see any special attributes set on /etc/mythtv/config.xml:
$ lsattr /etc/mythtv/config.xml
---------------- /etc/mythtv/config.xml

And even so, if a file is excluded, I'd figure that it wouldn't show up
in the xfsrestore directory listing, right?


So what can cause a file to silently be skipped during restore?   I'm
running the latest xfsdump/xfsrestore provided by Ubuntu 14.04, which is
3.1.1.   I notice the same symptoms from my recovery environment, which
is SystemRescueCD 4.2.0


Thanks!
-WD

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

end of thread, other threads:[~2016-11-28 22:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-28  1:49 Silent skipping of file during xfsrestore Will Dormann
2016-11-28  1:59 ` Dave Chinner
2016-11-28  5:00   ` Will Dormann
2016-11-28  8:21     ` Dave Chinner
2016-11-28 13:17       ` Will Dormann
2016-11-28 21:33         ` Dave Chinner
2016-11-28 22:00           ` Will Dormann
2016-11-28 16:10       ` Will Dormann
2016-11-28 16:32         ` Eric Sandeen
2016-11-28 16:43           ` Will Dormann
2016-11-28 17:45             ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).