[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xfsdump sample scripts
Federico,
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,
Ian.
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@semisphere.org
"The number of Unix installations has grown to 10, with more expected."
-- The Unix Programmer's Manual, 2nd Edition, June, 1972