Re: Testing Disaster Recovery using mksysb and restorevgf iles

From: Patrick B. O'Brien (pobrien@DOIT.NV.GOV)
Date: Thu Sep 26 2002 - 11:39:53 EDT


That was it!! Here is the command to assure the file gets put back in the same spot;

restorevgfiles -f /vol0/.rootvg_backups/shastx/mksysb.file -r -s -d / ./home/adm/outfile.out

Thank you!!

 -----Original Message-----
From: Jean-Marc Monnez [mailto:monnez.jean-marc@AGORA.MSA.FR]
Sent: Thursday, September 26, 2002 1:01 AM
To: aix-l@Princeton.EDU
Subject: Re: Testing Disaster Recovery using mksysb and restorevgf iles

Your tape list says : ./home/adm/ls.out
It's the exact name you must use as restore command argument, don't omit the leading ./

Regards

-- JMM

"Patrick B. O'Brien" wrote :

> I tried the;
>
> restorevgfiles -f /vol0/.rootvg_backups/shastx/mksysb.file -r /home/adm/ls.out
> with the -r and no joy!
> It just comes back to a prompt. It does not restore or provide any info.
>
> I also tried;
>
> # restore -xqdvf /vol0/.rootvg_backups/shastx/mksysb.file /home/adm/ls.out
> New volume on /vol0/.rootvg_backups/shastx/mksysb.file:
> Cluster size is 51200 bytes (100 blocks).
> The volume number is 1.
> The backup date is: Wed Sep 25 07:46:27 PDT 2002
> Files are backed up by name.
> The user is adm.
> The total size is 0 bytes.
> The number of restored files is 0.
>
> I can list the file;
>
> #listvgbackup -f'/vol0/.rootvg_backups/shastx/mksysb.file'|grep /home/adm/ls.doc
> New volume on /vol0/.rootvg_backups/shastx/mksysb.file:
> Cluster size is 51200 bytes (100 blocks).
> The volume number is 1.
> The backup date is: Wed Sep 25 07:46:27 PDT 2002
> Files are backed up by name.
> The user is adm.
> 457 ./home/adm/ls.out
> The number of archived files is 59793.
>
> Any ideas on how I can restore only a file or directory from an mksysb?
>
> Thank you!!!!!!
>
> -----Original Message-----
> From: Adams Kevin J [mailto:kevin.adams@PHS.COM]
> Sent: Wednesday, September 25, 2002 9:53 AM
> To: aix-l@Princeton.EDU
> Subject: Re: Testing Disaster Recovery using mksysb and restorevgfiles
>
> According to the source, you want to specify -r too.
>
> Also, you're backing up to one place (ruby) and restoring from another
> (genoa). Maybe just a bad example.
>
> 35 # Input flags:
> 36 #-----------------------------------------------------------------------
> 37 # -b blocks ## Number of 512-byte blocks to read in a single
> 38 # ## input operation
> 39 # ## Defaults to the default of the restore command
> 40 #-----------------------------------------------------------------------
> 41 # -f device ## Device (file, tape, cdrom) containing the backup
> 42 # ## Default: /dev/rmt0
> 43 #-----------------------------------------------------------------------
> 44 # -r ## Indicates files are to be restored from the backup
> 45 # ## List the files to be restored in the filelist
> 46 # ## Default: list files only
> 47 #-----------------------------------------------------------------------
> 48 # -a ## Verify tape physical block size
> 49 # ## (only applicable if tape device)
> 50 #-----------------------------------------------------------------------
> 51 # -s ## Specify if backup is of a user volume group (not rootvg)
> 52 #-----------------------------------------------------------------------
> 53 # -d ## Directory to restore files to (only used with -r)
> 54 #-----------------------------------------------------------------------
> 55 # filelist ## List of files to be restored if -r flag specified
> 56 # ## Default: restore all files
> 57 #-----------------------------------------------------------------------
>
> Kevin Adams
>
> -----Original Message-----
> From: Patrick B. O'Brien [mailto:pobrien@DOIT.NV.GOV]
> Sent: Tuesday, September 24, 2002 5:36 PM
> To: aix-l@Princeton.EDU
> Subject: [aix-l] Testing Disaster Recovery using mksysb and
> restorevgfiles
>
> Hello AIX'ers,
>
> I'm testing my DR. I did a;
>
> #mksysb -i /vol0/.rootvg_backups/ruby/mksysb.file.
>
> To test my backup I did a;
>
> # listvgbackup -f /vol0/.root*/genoa/mksysb.file |grep /etc/hosts
> New volume on /vol0/.rootvg_backups/genoa/mksysb.file:
> Cluster size is 51200 bytes (100 blocks).
> The volume number is 1.
> The backup date is: Tue Sep 24 09:26:09 PDT 2002
> Files are backed up by name.
> The user is xxxxxx.
> 3275 ./etc/hosts
> The number of archived files is 30755.
>
> Then I did a;
>
> #restorevgfiles -f /vol0/.root*/genoa/mksysb.file -d /tmp ./etc/hosts.
>
> This utility scrolled through my mksysb.file file showing all the files.
> But it never restored my /etc/hosts to my /tmp directory.
>
> Has anyone been successful in restoring only a file from a mksysb using
> restorevgfiles?
>
> Thank you!!!
>
> This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.
>
> If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:13 EDT