Sponsored Content
Full Discussion: How to restore from disk?
Operating Systems HP-UX How to restore from disk? Post 303012751 by Peasant on Thursday 8th of February 2018 11:41:46 AM
Old 02-08-2018
What are you trying to archive ?

The operating system ?
A directory, files ?

If you need to archive a directory with pax to another location it's simple as :

Code:
cd /directory/to/backup &&
[ -d /mybackuplocation ] && pax -wf /mybackuplocation/backup.tar .

Which can be scheduled in cron and error handled more perhaps.

For restoring a file, one should issue a command :

Code:
pax -rvf /mybackuplocation/backup.tar -n './somefile.py'

Which will restore a file 'somefile.py' to current working directory.


For operating system backup, ignite software should be used or a drd clone if you have spare disks.

Hope that helps.
Regards
Peasant.
 

6 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Restore to disk from tape

I have been restoring from tape some old data. I have done quite a few tapes and have had no problems until now. The command I am running is "dd if=/dev/rmt/1hbn bs=1024 | tar -pBxF - ". This is the second tape have have come up with the error "Not enough space". This tape has a couple of... (1 Reply)
Discussion started by: mtoombs
1 Replies

2. UNIX for Dummies Questions & Answers

How to restore a dump file on the disk

Hi all, i am a real dummy to unix and in need of help.My platform is Sun solaris(5.9) I have a dump file, an oracle cold backup taken with ufsdump command. This dump file resides on the disk, not the tape. I want to extract this dump file to a directory. But i cant, i read about ufsrestore... (1 Reply)
Discussion started by: merope
1 Replies

3. Solaris

after ZFS can not restore VTOC of disk..

I tried to use zfs .. only for test ..so when I take my test disks into zfs pool their VTOC changed .. and 7th slice does not appear now. How can I restore default VTOC to my disks. my machine is x86 .. SunFire X4200 .. so this disks do not have slices like sparc machines .. they have... (6 Replies)
Discussion started by: samar
6 Replies

4. AIX

mksysb restore - Wrong OS level for restore

Hi all, I am still working on my mksysb restore. My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored. 0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies

5. AIX

Dd of disk contains vg and restore on another m/c

Hello gurus, I have a requirement of backup of a vg containing a file system. vg1 contains 3 LV each of 50G size. They are coming out from ~350G harddisk. and only 150G is being used. Now, i want to dd this hdisk and restore to another machine. I am not sure how to go about this. Can some... (3 Replies)
Discussion started by: abhishekdave
3 Replies

6. UNIX for Advanced & Expert Users

LVM - restore metadata on other disk

Hi guys, I would like to ask your opinion about my theory, how to fix my broken LVM without risking any data loss. I use Archlinux at home. I just love this distro, even it gives me a lots of work (particularly after system updates). Basic system spec: AMD FX(tm)-6100 Six-Core Processor... (1 Reply)
Discussion started by: lyynxxx
1 Replies
btextract(8)						      System Manager's Manual						      btextract(8)

NAME
btextract - Extracts the file systems from tape in single-user mode in memory SYNOPSIS
/usr/sys/bin/btextract DESCRIPTION
The btextract utility is a shell script that restores file systems from tapes that contain the bootable Standalone System (SAS) kernel. The SAS kernel is created using the btcreate utility. You can perform a DEFAULT restore or an ADVANCED restore operation. A DEFAULT restore is used by system administrators who want to duplicate the customized system on more than one machine of the same hard- ware platform type. When you perform a DEFAULT restore, you cannot specify which disk partitions to use for the restore operation. Instead, the btextract utility restores file systems using the disk partition information gathered during the btcreate session; all exist- ing information is overwritten. Note To perform a DEFAULT restore, the disk configuration of the system you backed up must be the same as the system you are restoring. During an ADVANCED restore, you are prompted to enter the name of the disk partition where the file systems are to be restored. Note During an ADVANCED restore, the btextract utility assigns the b partition of the root disk as the swap partition. A file system which is more than 100% full cannot be restored in a partition of the same size as the original partition. During the restore of the UFS file system, the /sbin/restore command adds a new file named restoresymtable. The presence of this restoresymtable file can make the restored file system larger than the source partition size listed in the /sbin/disklabel output. For example, on the source system, the disklabel shows the target h partition to be: h: 86758 1212416 4.2BSD And the ufs file system is as follows: Filesystem 512-blocks Used Available Capacity Mounted on /dev/dsk8h 83812 83786 0 112% /bootable The file system is 112% full. This file system cannot be restored on the target file system of 86758 (512-blocks), as the following file is created by the /sbin/restore command. -rw-r--r-- 1 root system 27368 Jul 2 09:33 restoresymtable The command /sbin/restore creates a restoresymtable file that exceeds the 112% range. The solution is to use a partition of about 86996 (512-blocks), about 3.8% larger than the actual file size. USING btextract To use the btextract utility, place the system in a halt state, initialize the system, then boot from the tape as follows: >>> init >>> show dev >>> boot -fl "nc" MKA500 In the previous example, the show dev command provides the device name under BOOTDEV and MKA500 is the BOOTDEV. Once the initial boot is complete, the shell invokes the btextract utility. If you created a /usr/lib/sabt/sbin/custom_install.sh script during the btcreate session, the btextract utility invokes the custom_install.sh script before exiting. See the btcreate reference page for more information. You also have the option to label disks using your own disklabel script. If a customized disklabel script is not present, the btextract command will label the disks in the usual manner. A customized disklabel script has the following restrictions: It must be located in the /usr/lib/sabt/etc directory. It must be named custom_disklabel_file. After the btextract utility completes, you must shut down the system, then reboot the system from the restored disk as follows: # shutdown -h now >>> boot DKA100 In the previous example, DKA100 is the BOOTDEV. RETURN VALUES
Success. An error occurred. FILES
Log of the btextract process in memory Copy of the btextract process on the restored root file system Script used to customize the restored image A custom disklabel file read by btextract SEE ALSO
Commands: addvol(8), btcreate(8), df(1), disklabel(8), lmf(8), mkfdmn(8), mkfset(8), newfs(8), restore(8), sh(1), vrestore(8) btextract(8)
All times are GMT -4. The time now is 11:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy