Networker

[Networker] How to restore a particular month backup from Tape-EMC netwo

2010-12-20 14:00:46
Subject: [Networker] How to restore a particular month backup from Tape-EMC netwo
From: ramkriz <networker-forum AT BACKUPCENTRAL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 20 Dec 2010 13:59:15 -0500
peeaarkey wrote:
> Dear ALL,
> 
> I have configured save sets for linux file system to networker s/w from EMC.
> I need to restore some datas for a particular period from the Tape.
> 
> How this can be achieved??
> Pl help me in this regard.
> 
> Thanx in advance
> 
> regards,
> peeaarkey


You need to perform the following steps to recover on linux. Also use "help" in 
recover console.

[[email protected] /]# recover -t 12/28/2008 /var/adm

This places you in a shell like recovery console environment where you can 
browse and recover files/directories.

Example:

[[email protected] /]# recover -t 12/28/2008 /var/adm
recover: Current working directory is /var/adm/
recover> 

Note: If you need to restore the files in a non-default directory (different 
distination), use the option -d as shown in the example

Example:

[[email protected] /]# recover -d /tmp -t 12/28/2008 /var/adm
recover: Current working directory is /var/adm/
recover> 

To list files/directories, execute the subcommand 'ls' or 'll' in recovery 
console

Note: The subcommand 'll' is used for long listing similar to unix command 'ls 
-l'

Example:

[[email protected] /]# recover -t 12/28/2008 /var/adm
recover: Current working directory is /var/adm/
recover> ll
total 69187
1 dr-xr-x--- bin cron 512 Nov 25 2003 cron/
3440 -rw-r--r-- root system 3521724 Dec 16 17:05 messages
4884 -rw-r--r-- root system 5000083 Oct 19 22:49 messages.0
152 -rw------- root system 151645 Dec 15 18:00 sulog
1 drwxr-xr-x root system 512 Aug 27 11:11 sw/
47540 -rw-rw-r-- adm adm 48680352 Dec 16 09:01 wtmp
recover> 

Before restore the file(s)/directories, need to mark the file(s)/directories

Example: 

recover> add -q messages messages.0 sulog
3 file(s) marked for recovery

Execute the subcommand 'list' to list the marked file(s)/directories

recover> list 
/var/adm/messages @ Mon Dec 28 05:55:58 CST 2008
/var/adm/messages.0 @ Mon Dec 28 05:55:58 CST 2008
/var/adm/sulog @ Mon Dec 28 05:55:58 CST 2008

Execute the subcommand 'recover' in recovery console to recover the marked 
file(s)/directories

Example:

recover> recover
Recovering 2 files within /var/adm/ into /tmp
Volumes needed (all near-line):
TSE001 at tapelib
Total estimated disk space needed for recover is 112 KB.
Requesting 3 file(s), this may take a while...
./messages 
./messages.0 
./sulog
Received 3 file(s) from NSR server 'backup_server'
Recover completion time: Tue Dec 30 14:39:15 2008
recover> quit
[[email protected] /]#

Below is an example of total sequence of how a file(s) restore is performed

[[email protected] /]# recover -d /tmp -t 12/28/2008 /var/adm
recover: Current working directory is /var/adm/
recover> ll
total 69187
1 dr-xr-x--- bin cron 512 Nov 25 2003 cron/
3440 -rw-r--r-- root system 3521724 Dec 16 17:05 messages
4884 -rw-r--r-- root system 5000083 Oct 19 22:49 messages.0
152 -rw------- root system 151645 Dec 15 18:00 sulog
1 drwxr-xr-x root system 512 Aug 27 11:11 sw/
47540 -rw-rw-r-- adm adm 48680352 Dec 16 09:01 wtmp
recover> add -q messages messages.0 sulog
3 file(s) marked for recovery
recover> list 
/var/adm/messages @ Mon Dec 28 05:55:58 CST 2008
/var/adm/messages.0 @ Mon Dec 28 05:55:58 CST 2008
/var/adm/sulog @ Mon Dec 28 05:55:58 CST 2008
recover> recover
Recovering 2 files within /var/adm/ into /tmp
Volumes needed (all near-line):
TSE001 at tapelib
Total estimated disk space needed for recover is 112 KB.
Requesting 3 file(s), this may take a while...
./messages 
./messages.0 
./sulog
Received 3 file(s) from NSR server 'backup_server'
Recover completion time: Tue Dec 30 14:39:15 2008
recover> quit
[[email protected] /]#

+----------------------------------------------------------------------
|This was sent by ramkriz AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

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