Is there any possibilty to restore backup taken with backupby file name to any other filesystem


 
Thread Tools Search this Thread
Operating Systems AIX Is there any possibilty to restore backup taken with backupby file name to any other filesystem
# 1  
Old 04-03-2013
Is there any possibilty to restore backup taken with backupby file name to any other filesystem

Hi,

I have taken a backup of filesystem " /backup " by using backupby file name command on tape
Code:
Mount volume 1 on /dev/rmt0.
Press Enter to continue. Backing up to /dev/rmt0.
Cluster 51200 bytes (100 blocks).
Volume 1 on /dev/rmt0
a          0 /backup       
a        543 /backup/abc_log       
a        943699 /backup/xyz.log       
a     5677871104 /backup/Datafilemain.dmp       
a      33583343 /backup/Coredatafile1dmp.Z

Now I want to restore the contents of the above listed backup to some other filesytem for.eg. I want to restore it all the files in /new_backup.

How this can be accomplished? Any help would be appreciated.

Last edited by m_raheelahmed; 04-03-2013 at 04:02 AM..
# 2  
Old 04-03-2013
make the new filesystem
cd to new directory
restore -xqf /dev/rmt0

that simple.

hope this helps.
# 3  
Old 04-04-2013
I have created new filessytem /new_backup & use the same command restore -xqf /dev/rmt0 but the files were restored to /backup instead of /new_backup
Code:
x /backup
x /backup/abc_log
x /backup/xyz.log
x /backup/Datafilename.dmp
x /backup/Coredatafile1.dmp.Z

Smilie

Please advice
# 4  
Old 04-04-2013
Ah, the file names are hard coded to /backup rather than ./backup

So, depends on whether the directory /backup can be offline or not.

If it can be offline then just mount the new filesystem on /backup manually, and restore. Unmount /backup and mount again in the "new" location.

This is what I would prefer to having /backup as a symbolic link to your new location.

Summary
Code:
# mklv -y lvNewBackup -t jfs2 vgBackups XXXg
# crfs -v jfs2 -d lvNewBackup -m /newBackup -A no # no auto mount
# # assuming /backup is a filesystem
# umount /backup
# mount -o log=NULL /dev/lvNewBackup /backup
# restore -xqf /dev/rmt0
# unmount /backup
# mount /newBackup
# mount /backup

lvNewBackup is a name of your choosing for the logical volume
vgBackups is the name volume group you are creating the new logical volume/filesystem in
This User Gave Thanks to MichaelFelt For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

how to restore backup from veritas vm in ufs file system

Hi all I have a DLT tape in that tape backup is there is in veritas volume format and i want to restore it in ufs file system how can i do it? right now i don't have veritas file system setup. i have only ufs file sysytem please help some production data is to be restore. backup was taken... (0 Replies)
Discussion started by: nikhil kasar
0 Replies

2. Red Hat

Backup / Restore

Hi, I need to back up a RH file system (96G). The files are oracle .dbf format some of which are 5G in size. I know that tar has got a size restriction of 2G so I cannot use this. Can anyone recommend an alternative way of backuping up this FS? I have been looking at dump but this... (6 Replies)
Discussion started by: Duffs22
6 Replies

3. SuSE

SuSE 11.4 Filesystem Backup and Restore

Hi, The dump and restore commands are missing from this server under SuSE 11.4 for unknown reasons. What is the cleanest way to backup and restore filesystems? Clean means to keep all the original hard/soft links and timestamps. Is find/cpio clean enough? $ cd /source $ find . -print | cpio... (4 Replies)
Discussion started by: aixlover
4 Replies

4. AIX

Backup and restore

Hi experts, i got a question. i have a production server with two Volume Group(VG) which are rootvg and datavg. Both of these VGs are 256 PP SIZE. On Disaster Recovery Server (DR server) contains two empty hardisks for restoring rootvg and datavg from production server. This two hardisks are... (7 Replies)
Discussion started by: polar
7 Replies

5. Solaris

Restore from Flash Archive on local filesystem

I am doing a practice restore using a test UNIX(Solaris) system, and a SCSI Hard Drive whose slice 5 contains the Flash Archive file that I need to restore from. The test system is offline( no network ) and does not have external devices, such as tape drive. My goal is to somehow restore the... (9 Replies)
Discussion started by: the.gooch
9 Replies

6. AIX

Single file restore from NIM backup

Hi, I've recently implemented a NIM backup procedure for 2 virtual AIX5.3 environments running on a JS22 blade server. The images transfer to an old p620 box connected to some old SSA storage, each server backs up a mksysb and a savevg image. Now seeing as this method should be replacing our... (3 Replies)
Discussion started by: thinboyslim
3 Replies

7. HP-UX

F-Backup restore

Hello! i have a blank harddrive and a complete tape backup of the workstation. the backup is made with F-Backup. Now my question is: how can i restore my workstation? thanks for every idea! paul tittel hup-si (3 Replies)
Discussion started by: paultittel
3 Replies

8. AIX

Backup and restore

I have several H80 machines, all with AIX 4.3.3. On these machines I have mksysb running for rootvg backups and savevg for non-rootvg backups. I'm trying to get a list of files on the tapes, but I can't seem to do it with tar for the mksysb images. I keep getting the directory checksum errors?... (3 Replies)
Discussion started by: uXion
3 Replies

9. Solaris

Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 . I have some question about .... 1) Is better backup phisical disk or partition ??? i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to... (4 Replies)
Discussion started by: tt155
4 Replies

10. HP-UX

HP-UX Filesystem backup/restore?

:confused: Hi Guys, I'm not new to UNIX but I am new to HP-UX. I have a proven backup and restore procedue using cpio on Solaris, however, the filesystem structure appears to be different on HP. Can anybody help me with the following questions? 1) What is the best method for performing a... (7 Replies)
Discussion started by: mybeat
7 Replies
Login or Register to Ask a Question