Backup HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX Backup HP-UX
# 1  
Old 04-17-2012
Backup HP-UX

Hi Experts,

Can you please guide me on following activites as it needs to be completed before/after one of our system's(HP-UX) downtime.

Before downtime
(1) Please guide how to take backup of all mount points
(2) How to take backup of network settings

After downtime
how to check if all mont point is properly mounted and network settings are same as previous.


Need your urgent help!!


Thanks in Advance.
# 2  
Old 04-18-2012
This User Gave Thanks to Peasant For This Post:
# 3  
Old 04-18-2012
Look in the directory /etc/rc.config.d , sort by modification date and save anything which has changed since HP-UX was installed . The main Network Configuration file is called netconf , but there will be more depending on what network hardware you have installed.

Other network-related files to save are:
/etc/hosts
/etc/inetd.conf
/etc/nsswitch.conf
/etc/ntp.conf
/etc/resolv.conf
/etc/services
# Everything in the directory
/etc/mail

Again, sort /etc by modification date and and look for files which have changed since the system was installed (particularly files with extension .conf).



Save a copy of /etc/mnttab (the list of current mounted filesystems) for comparision.

As for the full backup, as well as making an Ignite backup as advised you may need to backup other filesystems which are excluded from the Ignite backup.
How do you normally back your system up?
# 4  
Old 04-18-2012
Hi Methyl..

Thanks for the reply.

How to take backup using netstat?

For e.g.
Code:
 
Before downtime I execute following command
netstat -<some_option>  > netstat_output_before.txt
 
After system is rebooted I execute following command
netstat -<some_option> > netstat_output_after.txt

Now after reboot I want to compare both the files (netstat_output_before.txt and netstat_output_after.txt) to check all the network configurations are same as previous one.

Now my question is which option I should use in place of <some_option> so that it will list all the current network settings.
# 5  
Old 04-18-2012
Presumably you ran something like:
Code:
# Find out the interfaces configured
lanscan -ai
# Find out the IP address etc.
ipfconfig <interface>
# Find out current statistics
netstat -i -I <interface>

The comparison:
Code:
diff netstat_output_before.txt netstat_output_after.txt

Similar comparison for any of the network configuration files you saved.

If you are doing a software upgrade of some sort it might be an idea to save a copy of the output from swlist -v so you know where you started from.
This User Gave Thanks to methyl For This Post:
# 6  
Old 04-24-2012
Thanks methyl

Using commands mentioned above were really helpful in comparing the configurations before/after downtime.

Everything went well Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with Backup Shell Script for Network Device Configuration backup

HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here Im explaining the requirement of script. AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies

2. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

3. UNIX for Advanced & Expert Users

backup a file and keep every version of the backup

I am trying to backup my .bash_history and I want to keep every version of the backup. I am thinking to put one of these in my crontab. 0 0 * * 0,3 cat .bash_history > boo 0 0 * * 0,3 cp .bash_history boo I would like the backups to be called boo1, boo2, boo3, etc. I would like to keep... (7 Replies)
Discussion started by: cokedude
7 Replies

4. AIX

backup

hi seniors today i took a backup using tar cmd in this i took two files for backup,backup was done succesfully but while viewing using tar -tvf ------- its showiing only one file at a time and i took backup in /etc/hosts,/etc/sen/nes (7 Replies)
Discussion started by: senmak
7 Replies

5. UNIX for Advanced & Expert Users

Backup to CD ????? any one know how to do ???

hi, am trying to backup data on cd, cuz i don not have tape device....!!! i've rewritable CDROM, am using solaris 10 for x86 on vmware ..... how to make a backup data to a cd_rom againist to tape ? # ufsdump 0f cd_rom (1 Reply)
Discussion started by: sasame
1 Replies

6. SCO

Backup to SCSI Tape Backup aborts

I am trying to make a full backup of my system using the cpio command. The Tape Unit is a SCSI DDS. The process started fine but after about 30 minutes, it just stopped and showed the following message: 1755 Signal 31 - Core dumped Any idea of what is causing this and how to fix it? ... (4 Replies)
Discussion started by: zionpc
4 Replies

7. UNIX for Dummies Questions & Answers

Check backup file size on backup tape

Hi, I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies

8. UNIX for Dummies Questions & Answers

Backup

Dear All I have an HP 9000/800 UNIX machine , I have also Oracle applications 11i installed on it , we tried to take backup using fbackup command but it skipped some files ( was for database and the database was up and running ) but it took the other database files. I need to know also ,... (2 Replies)
Discussion started by: hisham.hamdy
2 Replies

9. UNIX for Dummies Questions & Answers

regarding backup

hi i wanna know that is any such type of backup possible in Solaris or AIX that if my system crashes and i had to format the server.........then i shud be able to build the server with that backup only...........if so how thx (3 Replies)
Discussion started by: girish_shukla
3 Replies
Login or Register to Ask a Question