Backing up HP-UX via Arcserver w/o Unix agent

I have a HP-UX 11 box that I want to get backed up. It has a number of flat files Oracle dumps & other config files I want to get backed up. I am running the latest version of Arcserve backup but i do not have a HP-UX agent.

Is there a way to connect & backup the files without a agent?

Worse come to worse I will need to copy the info out to my NAS & back it up from there.

How can I get this backed up without copying the files to my NAS?
someITGuyAsked:
Who is Participating?
 
xtermCommented:
That's about as easy as can be, replace 1.1.1.1 with your NFS server IP, and replace /sharename with the name of your NFS share.
#  THESE TWO COMMANDS CREATE A MOUNT POINT, AND ACTUALLY MOUNT THE NFS SHARE
mkdir /nfs
mount -t nfs 1.1.1.1:/sharename /nfs

# THIS COMMAND WILL CREATE A SINGLE FILE ON THE NFS SHARE
tar cf /nfs/backup-YYYYMMDD.tar /source/file1 /othersource/file2 /thirdsource/fileX

# OR SIMPLY INSTEAD DO BELOW IF YOU DON'T WANT TO ARCHIVE INTO A SINGLE FILE
cp /source/file1 /othersource/file2 /thirdsource/fileX /nfs

Open in new window

0
 
xtermCommented:
Where does the Arcserve agent normally back up to - your NAS?  Or a local tape drive?
0
 
someITGuyAuthor Commented:
Arcserver backs up to a tape drive.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
someITGuyAuthor Commented:
We need this data on a tape for offsite storage.
0
 
xtermCommented:
You can mount (if not already) the tape, and then use the "tar" command to backup to tape.




mount -t ext2 /dev/XXX /media/tape  # sample command only, modify for your use
tar cf /media/tape/backup-YYYYMMDD.tar /source/directory

Open in new window

0
 
someITGuyAuthor Commented:
I do not have direct access to the tape drive from the HP-UX box. The tape drive is directly attached to my Windows backup server via fiber channel....
0
 
xtermCommented:
I see, so the Arcserve agent actually connects to a remote Arcserve server which is connected to the tape drive.

This changes the game a little, but its not un-doable.  Can you install Samba on the HPUX box?  If so, you could just share the holding area on your Windows machine.

Instead of mounting the tape drive, you'd mount the remote Windows share, and tar it up the same way:
mount -t cifs //<ip of windows box>/C /media/winshare -odomain=WORKGROUP,username=guest
tar cf /media/winshare/backup-YYYYMMDD.tar /source/directory

Open in new window

0
 
someITGuyAuthor Commented:
I do not have an Arcserver agent. That is the problem.

I can't get SAMBA on this HP-UX box, is it possible to do it via NFS?
0
 
xtermCommented:
Yes, the concept is identical - do you want the HPUX box to be the NFS server, and use the Windows machine to retrieve the files to back up?

Or do you want to have the HPUX machine access an NFS share on the Windows machine and copy/tar the files over to it?
0
 
xtermCommented:
And yes, I know you don't have an Arcserver agent on that server, but I'm theorizing as to how it works on your OTHER servers where you do have agents.
0
 
someITGuyAuthor Commented:
want the HP-UX box to access the NFS share on my NAS, and tar the data from the HP-UX box to the NFS share & have Arcserver back it up from there.
0
 
someITGuyAuthor Commented:
Get this error:

# mkdir /nfs
# mount -t nfs 10.0.0.123:/My_backups /nfs
mount: illegal option -- t
usage:  mount [-l][-v|-p]
        mount [-F FStype][-eQ] -a
        mount [-F FStype][-eQrV][-o specific_options]
                { special | directory }
        mount [-F FStype][-eQrV][-o specific_options]
                special directory
0
 
xtermCommented:
Gotta love HPUX.  Change it to -F nfs instead of -t NFS.
0
 
someITGuyAuthor Commented:
That worked, but I am getting an error when I try to tar to /nfs


tar: cannot open /nfs/backup-12192011.tar
0
 
xtermCommented:
Can you do "ls /nfs" and see files in there?

If you don't have permission to write, you probably have to grant permissions to the IP of the HPUX server from the Windows NFS server itself.
0
 
someITGuyAuthor Commented:
when i do "ls /nfs" it does show me lost+found & .etc  but I am unable to create a file or tar to the directory.

0
 
xtermCommented:
Please show me the output of the following command:
df -k

Open in new window

0
 
someITGuyAuthor Commented:
/nfs                   (10.0.0.123:/My_backups) : 201674984 total allocateb
                                                  201674392 free allocated Kb
                                                       592 used allocated Kb
                                                         0 % allocation used


It looks like I can now write to the directory after doing a chmod 777 /nfs

In HP-UX is there a way to add compression to the tar command? I am not seeing the "z" option...
0
 
xtermCommented:
There is not a way to add compression to the stock tar command, however you can compress it afterwards (keep in mind that this could take a lengthy period of time if the file is large)

You could probably install the GNU version of tar which does support the -z flag as well if you need to do it all in one command.
gzip -9 /nfs/backup-12192011.tar

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.