Link to home
Start Free TrialLog in
Avatar of someITGuy
someITGuy

asked on

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?
Avatar of xterm
xterm

Where does the Arcserve agent normally back up to - your NAS?  Or a local tape drive?
Avatar of someITGuy

ASKER

Arcserver backs up to a tape drive.
We need this data on a tape for offsite storage.
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

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....
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

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?
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?
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.
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.
ASKER CERTIFIED SOLUTION
Avatar of xterm
xterm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Gotta love HPUX.  Change it to -F nfs instead of -t NFS.
That worked, but I am getting an error when I try to tar to /nfs


tar: cannot open /nfs/backup-12192011.tar
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.
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.

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

Open in new window

/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...
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