Solved

Performing HPUX backups without a tape drive

Posted on 2004-08-26
4
2,203 Views
Last Modified: 2013-12-06
I don't have a tape drive for my HPUX 11.00 machine so instead I would like to perform backups to an NFS mount.  I am able to do this under Solaris using ufsdump/ufsrestore.  On HPUX there are facilities to create backups using SAM but all the options require an actual tape drive.  How can I get around this?
0
Comment
Question by:chuyler1
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:tfewster
ID: 11908448
Several ways leap to mind:  Do you just want to back up datafiles or back up the "system"?

1) find list_of_directories -print | cpio -o > /path/to/NFS/mount/archivename`date +%Y%m%d`

2) fbackup -f /path/filename

3) make_recovery
0
 

Author Comment

by:chuyler1
ID: 11909072
I would like to back up the entire system.  This is primarily to recover from a hard drive failure.  Recovering individual files would be nice but most likely I would recover an entire partition.

The simpler the solution the better...which is why I was trying to do it from SAM.  
0
 
LVL 20

Accepted Solution

by:
tfewster earned 125 total points
ID: 11911311
I believe SAM calls fbackup, but the SAM front end doesn't allow you to select anything other than a tape drive.

To make an Ignite backup that can be used to rebuild the system from scratch (IF the NFS server is also an HP-UX system):
make_net_recovery -a NFS_server:/NFS/exported/directory -x inc_entire vg00

If you don't have another HP system that can be used as an Ignite server, you can use fbackup to back up the operating system. The man page for fbackup is slightly confusing on how to use the command, but gives some good suggestions on backup strategies.

At its simplest:
fbackup -0 -i / -f /NFS/mounted/directory/backup_name

Data filesystems should be backed up with fbackup, e.g.
fbackup -0 -i /oracle -i /oradata -f  /tmp_mnt/oraclebackup_`date +%Y%m%d`

Note that this does a full backup; fbackup CAN do incremental backups, but you'd need to ensure the fbackup "database" was backed up after each of the other backups were complete so that in the event of a total loss you could recover the OS, then the database, then the files. Let me know if you need more info on fbackup strategies.

Note also that databases and other applications need to be shut down during the backup.

See also:
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=227689
0
 

Author Comment

by:chuyler1
ID: 11914174
With your help I have come up with a solution (two minds are better than one).

As I mentioned, SAM allows you to specify a remote tape drive.  It ends up calling the fbackup command with "-f server:/path/to/drive" but it doesn't necessarily have to be a drive.  This syntax doesn't seem to work with an NFS share (or perhaps the machine must be another HPUX machine)  but I found a way to work around it while still using SAM:

1) Create an automated backup using SAM specifying "nfs_server" as the host and "/backup/myhost/backup_file" as the remote tape drive where "/backup" is actually the nfs share where you want to store your backup, "/myhost" is a folder on that share, and "backup_file" is the file where the backup will be stored.

2) As root, run "crontab -e" and search for "nfs_server".  Change any lines that say "nfs_server:/backup/myhost/backup_file" to just "/backup/myhost/backup_file".  If you opted to do an incremental backup there will be two instances that need to be modified.

3) Use SAM to create a permenant NFS mount at "/backup" for "nfs_server:/backup".

4) Verify that your automated backup displays the correct information from SAM and run your backup.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now