HP-UX

HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

How to restore from disk?

👤 Login to reply

    #1  
Old 02-06-2018
jduehmig jduehmig is offline
Registered User
 
Join Date: Sep 2014
Last Activity: 6 June 2018, 9:42 AM EDT
Posts: 26
Thanks: 0
Thanked 2 Times in 1 Post
How to restore from disk?

Our new rx2800 server is running HP-UX 11iV3. We have a cron script to perform an fbackup to a file on disk nightly. Now I'm trying to do a test restore, but I can't seem to find the correct way to specify the backup file as the source in frecover. Can anyone point me in the right direction?
Thanks,
Joe

Last edited by rbatte1; 02-07-2018 at 12:31 PM.. Reason: Emboldened commands for clarity
Sponsored Links
    #2  
Old 02-07-2018
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 21 July 2018, 10:28 AM EDT
Posts: 1,197
Thanks: 34
Thanked 370 Times in 318 Posts
I haven't used those commands, just to say upfront.

But when i opened the manual, HP suggested that pax should be used instead for archiving purpose.

With pax, stuff should be fairly obvious, if you run into issues or question about it, feel free to post the code you tried here to get some help.

There are also a lot of examples on this forums involving pax

As for fbackup, nothing is stopping you to experiment a bit, doesn't it

Hope that clears things out
Regards
Peasant.
Sponsored Links
    #3  
Old 02-08-2018
jduehmig jduehmig is offline
Registered User
 
Join Date: Sep 2014
Last Activity: 6 June 2018, 9:42 AM EDT
Posts: 26
Thanks: 0
Thanked 2 Times in 1 Post
Interesting. When I ready the administration guides I don't see a mention of pax. The instructions are all for frestore, but all examples are for a DDS tape drive.

Joe
    #4  
Old 02-08-2018
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 21 July 2018, 10:28 AM EDT
Posts: 1,197
Thanks: 34
Thanked 370 Times in 318 Posts
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.
Sponsored Links
    #5  
Old 02-08-2018
jduehmig jduehmig is offline
Registered User
 
Join Date: Sep 2014
Last Activity: 6 June 2018, 9:42 AM EDT
Posts: 26
Thanks: 0
Thanked 2 Times in 1 Post
The OS is HP-UX 11iV3. And there may be a terminology issue here. I say 'backup' and you say 'archive'. What I have is a cron that runs fbackup every night and creates a backup file of a production file system on a secondary disk. The backup file is called 'backup'. Since fbackup was used to create the file, I've made the assumption I would use frestore to restore any files and/or directories that may be needed. This is a new/upgraded system and I'm simply trying to update documentation so I can make use of the backup file if necessary. I already know how to restore from tape.
Thanks,
Joe
Sponsored Links
    #6  
Old 02-08-2018
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 21 July 2018, 10:28 AM EDT
Posts: 1,197
Thanks: 34
Thanked 370 Times in 318 Posts
What i offered was an alternative to (as man page says) a obsolete tools to backup data to tar file.

Other then that, i haven't used tools you mentioned, so i cannot suggest.

Regards
Peasant.
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
LVM - restore metadata on other disk lyynxxx UNIX for Advanced & Expert Users 1 11-04-2013 03:11 AM
Dd of disk contains vg and restore on another m/c abhishekdave AIX 3 09-20-2013 02:01 PM
after ZFS can not restore VTOC of disk.. samar Solaris 6 11-29-2008 03:07 PM
How to restore a dump file on the disk merope UNIX for Dummies Questions & Answers 1 11-05-2008 01:45 PM
Restore to disk from tape mtoombs Filesystems, Disks and Memory 1 04-30-2004 02:26 PM



All times are GMT -4. The time now is 07:21 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?