[Top] [All Lists]

Re: xfsdump sample scripts

To: linux-xfs@xxxxxxxxxxx
Subject: Re: xfsdump sample scripts
From: Ian Cumming <ian@xxxxxxxxxx>
Date: Fri, 17 May 2002 16:56:22 +1000
In-reply-to: <Pine.LNX.4.44.0205171426440.5359-100000@gusi.leathercollection.ph>
References: <20020517054234.GA25311@ids.org.au> <Pine.LNX.4.44.0205171426440.5359-100000@gusi.leathercollection.ph>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.3.28i

Here's a cut and paste out of my personal documentation. Hope this helps,

Restore procedure:
- Compressed dumps may be restored with the command:
  gunzip -c xfsdump.gz | xfsrestore -i - /restore/path

  This is useful to restore files that a user may have deleted, for example.

- For example, a user's home directory can be restored interactively
  by using the command:
  gunzip -c /mnt/backup/home/home_xfsdump0.gz | xfsrestore -i - /home

  Then by selecting the user's home directory with "add", followed by the 
"extract" command.

- Full restoration may be performed by using the -r
  (Cumulative) option in xfsrestore. Read xfsrestore man page
  thouroughly before attempting to do this!

Note: Be sure to only restore the backup dumps up to the date you wish to 
restore to!  For example, if you want to restore to Tuesday, only restore 0, 1 
and 2 - not anything else!

hope this helps,


On Fri, May 17, 2002 at 02:39:03PM +0800, Federico Sevilla III wrote:
> On Fri, 17 May 2002 at 15:42, Ian Cumming wrote:
> > Basically, I do full (level 0) dumps every Sunday, with incremental
> > backups every other day of the week.
> Cool. Reading your script already answered a number of my questions
> (including can the dumps be compressed). I'm not very familiar yet with
> how xfsdump and xfsrestore work, but it looks like creating an incremental
> backup does not need access to an uncompressed full backup reference.
> When it comes to restoring, I wonder, if I want to do something like
> "restore foo.bar as of Wednesday", will it be possible to get this from
> the incremental backup of Wednesday, without uncompressing all the backup
> files?
> My apologies for the neophyte questions. Thanks in advance. And thanks
> again for sending us all the scripts.
>  --> Jijo
> -- 
> Federico Sevilla III   :  <http://jijo.free.net.ph/>
> Network Administrator  :  The Leather Collection, Inc.
> GnuPG Key Fingerprint  :  0x93B746BE

Ian Cumming, ian@xxxxxxxxxxxxxx

"The number of Unix installations has grown to 10, with more expected."
-- The Unix Programmer's Manual, 2nd Edition, June, 1972

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