xfs
[Top] [All Lists]

Re: xfsdump sample scripts

To: Federico Sevilla III <jijo@xxxxxxxxxxx>
Subject: Re: xfsdump sample scripts
From: John Kihonge <mkulima@xxxxxxx>
Date: Fri, 17 May 2002 10:14:49 -0500
Cc: Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
References: <Pine.LNX.4.44.0205171754390.20076-100000@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Federico Sevilla III wrote:

> On Fri, 17 May 2002 at 16:56, Ian Cumming wrote:
> > 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!
>
> So I restore from 0, then from 1, then from 2? Simply restoring from 2
> wouldn't work?
>
>  --> Jijo
>

Federico,

Restoring from level 2 will not work. xfsdump doea a full dump on base dump
(level 0) and then succeeding incremental dumps only dumps changes since
the previous dump level. To restore to Tuesday you will need to restore the
Sunday's base dump (level 0) and succeeding higher level dumps in
succession. In this case you will restore level 0 (Sunday's base dump),
then level 1 (Monday's incremental dump) and finally level 2 (Tuesday's
incremental dump) in that order.  Use the -r option to inform xfsrestore
you are performing a cumulative recovery.

For example, issue the following command to restore level 0 dump;

# /usr/sbin/xfsrestore -f /dev/tape -r /restore_dir

Enter the same command again and to restore the next level (level 1)

# /usr/sbin/xfsrestore -f /dev/tape -r /restore_dir

and finally issue the same command the third time to restore level 2 dump
(Tuesday's dump).

# /usr/sbin/xfsrestore -f /dev/tape -r /restore_dir


I hope this answers your question. See the xfsrestore manpages.

Thanks,

Kihonge JN


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