Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Remote backup on tape device

HP-UX 11.31
Occasional Advisor

Remote backup on tape device

Hi,

I have three HP unix servers (11.31). I want to take tar backup remotely on tape drive. I have one tape drive only and it is connected with one server.

Kindly provide the solution with commands.

I tried "tar with SSH" but unable to take backup.

Regards,
Ranjeet
6 REPLIES
Raj Briden
Frequent Advisor

Re: Remote backup on tape device

Share the directory that you want to take back up(NFS).

NFS mount the directory to the system where your tape is attached( say server B)

Take backup from server B

#tar -cvf < directory name >

Arockiasamy
Advisor

Re: Remote backup on tape device

Dear HPUX,

try to make an script in the local server.

and run the script from the remote machine.

That is better for every one.

For one example,

I'm in Tezpur university, i've One RHEL 5 as a proxy server with squid. For some peoples internet connection required for some time. And for some other peoples, it requies at some time.Some time, requied to stop.

For that, I've made a script to copy the configuration files depending upon the cron.

like that u just make a script.
HP-UX 11.31
Occasional Advisor

Re: Remote backup on tape device

Hi,

I am unable to erase the tape.

Pls find below output:-


# mt -f /dev/rmt/c0t0d0BESTnb status
Drive: HP Ultrium 3-SCSI
Format:
Status: [41114400] BOT online compression immediate-report-mode
File: 0
Block: 0

# tar tvf /dev/rmt/c0t0d0BESTnb
Tar: blocksize = 16
rwxrwxrwx 0/3 0 Oct 9 13:43 2009 /tmp/test/
rw-rw-rw- 0/3 52 Aug 25 17:17 2009 /tmp/test/Docapp.text
rw-rw-rw- 0/3 21751 Aug 25 17:17 2009 /tmp/test/Docappio.text
rwxr-xr-x 0/0 0 Oct 5 12:28 2009 /tmp/test/emcgrab/
rwxr-xr-x 0/0 14454 Apr 15 18:44 2009 /tmp/test/emcgrab/README
rw-r--r-- 0/0 15182 Jan 3 04:40 2009 /tmp/test/emcgrab/EMC_LEGAL_NOTICE.txt
rwxr-xr-x 0/0 27 Apr 13 20:42 2009 /tmp/test/emcgrab/version.sh
rwxr-xr-x 0/0 9013 Apr 14 00:18 2009 /tmp/test/emcgrab/emcgrab.sh
rwxr-xr-x 0/0 0 Apr 14 00:42 2009 /tmp/test/emcgrab/tools/
rwxr-xr-x 0/0 2581 Feb 27 02:15 2009 /tmp/test/emcgrab/tools/inq.sh
rwxr-xr-x 0/0 3062 Jan 5 22:13 2009 /tmp/test/emcgrab/tools/dru.sh
rwxr-xr-x 0/0 1450 Jan 5 22:15 2009 /tmp/test/emcgrab/tools/rp.sh
rwxr-xr-x 0/0 1796 Jan 5 22:14 2009 /tmp/test/emcgrab/tools/ift.sh
rwxr-xr-x 0/0 2102 Jan 5 22:12 2009 /tmp/test/emcgrab/tools/lvm.HP-UX.sh
rwxr-xr-x 0/0 0 Sep 23 01:12 2005 /tmp/test/emcgrab/tools/awk/
rw-rw-rw- 0/0 1095 Sep 4 03:37 2003 /tmp/test/emcgrab/tools/awk/check_ip.awk
rw-rw-rw- 0/0 304 Sep 4 03:36 2003 /tmp/test/emcgrab/tools/awk/check_exe.awk
rw-rw-rw- 0/0 2196 Sep 4 03:32 2003 /tmp/test/emcgrab/tools/awk/date_calc.awk
rw-rw-rw- 0/0 468 Sep 4 03:38 2003 /tmp/test/emcgrab/tools/awk/normalize_clarify.awk
rw-rw-rw- 0/0 403 Sep 4 03:37 2003 /tmp/test/emcgrab/tools/awk/extract_executable.awk
rwxr-xr-x 0/0 1162 Jan 5 22:13 2009 /tmp/test/emcgrab/tools/MODEL.sh
rwxr-xr-x 0/0 970 Jan 5 22:13 2009 /tmp/test/emcgrab/tools/erm.sh
rwxr-xr-x 0/0 1433 Jan 5 22:16 2009 /tmp/test/emcgrab/tools/sdmm.sh
rwxr-xr-x 0/0 4569 Apr 14 01:21 2009 /tmp/test/emcgrab/tools/pp.sh
rwxr-xr-x 0/0 1040 Apr 14 00:44 2009 /tmp/test/emcgrab/tools/networks.sh
rwxr-xr-x 0/0 4924 Jan 5 22:14 2009 /tmp/test/emcgrab/tools/host.sh
rwxr-xr-x 0/0 1895 Jan 5 22:14 2009 /tmp/test/emcgrab/tools/ifs.sh
rwxr-xr-x 0/0 1838 Jan 5 22:16 2009 /tmp/test/emcgrab/tools/vcs.sh
rwxr-xr-x 0/0 0 Apr 14 01:24 2009 /tmp/test/emcgrab/tools/lite/
rwxrwxrwx 0/0 0 Sep 24 16:22 2009 /tmp/test/emcgrab/tools/lite/inq.sh symbolic link to ../inq.sh
rwxrwxrwx 0/0 0 Sep 24 16:22 2009 /tmp/test/emcgrab/tools/lite/lvm.HP-UX.sh symbolic link to ../lvm.HP-UX.sh
rwxr-xr-x 0/0 837 Apr 14 01:24 2009 /tmp/test/emcgrab/tools/lite/pp.sh
rwxrwxrwx 0/0 0 Sep 24 16:22 2009 /tmp/test/emcgrab/tools/lite/networks.sh symbolic link to ../networks.sh
rwxr-xr-x 0/0 3818 Jan 5 22:12 2009 /tmp/test/emcgrab/tools/lite/se.sh
rwxr-xr-x 0/0 2512 Jan 5 22:12 2009 /tmp/test/emcgrab/tools/lite/HP-UX.sh
rwxrwxrwx 0/0 0 Sep 24 16:22 2009 /tmp/test/emcgrab/tools/lite/cstm.sh symbolic link to ../cstm.sh
rwxrwxrwx 0/0 0 Sep 24 16:22 2009 /tmp/test/emcgrab/tools/lite/hbainfo.sh symbolic link to ../hbainfo.sh
rwxrwxrwx 0/0 0 Sep 24 16:22 2009 /tmp/test/emcgrab/tools/lite/clariion.sh symbolic link to ../clariion.sh
rwxr-xr-x 0/0 0 Sep 23 01:12 2005 /tmp/test/emcgrab/tools/.old_modules/
rwxr-xr-x 0/0 1705 Dec 7 03:48 2003 /tmp/test/emcgrab/tools/.old_modules/vl.sh
rwxr-xr-x 0/0 1274 Jun 22 09:43 2003 /tmp/test/emcgrab/tools/.old_modules/fz.sh
rwxr-xr-x 0/0 5429 Oct 25 05:59 2004 /tmp/test/emcgrab/tools/.old_modules/celerra.sh
rwxr-xr-x 0/0 667 Jun 22 10:30 2003 /tmp/test/emcgrab/tools/.old_modules/esnm2.sh
rwxr-xr-x 0/0 3428 Jan 5 22:12 2009 /tmp/test/emcgrab/tools/ppvm.sh
rwxr-xr-x 0/0 11593 Apr 14 23:53 2009 /tmp/test/emcgrab/tools/se.sh
rwxr-xr-x 0/0 2527 Jan 5 22:13 2009 /tmp/test/emcgrab/tools/ecc.sh
rwxr-xr-x 0/0 4479 Jan 14 11:52 2009 /tmp/test/emcgrab/tools/HP-UX.sh
Tar: end of tape
Tar: to continue, enter device/file name when ready or null string to quit.

User entered a null name for next device file.

# mt -f /dev/rmt/c0t0d0BESTnb erase
mt: unknown command "erase"
# mt -f /dev/rmt/c0t0d0BESTnb rewind
# mt -f /dev/rmt/c0t0d0BESTnb erase
mt: unknown command "erase"
#

Regards,
Ranjeet

Raj Briden
Frequent Advisor

Re: Remote backup on tape device

it is clear from the error massage.

# mt -f /dev/rmt/c0t0d0BESTnb erase
mt: unknown command "erase"

Command not exists !

you want to format the tape ?
HP-UX 11.31
Occasional Advisor

Re: Remote backup on tape device

Yes, I want to format the tape. What is the command?
Dennis Handly
Acclaimed Contributor

Re: Remote backup on tape device

>I want to format the tape. What is the command?

You could use dd(1) to write /dev/zero onto the tape but it may not be secure enough.
There are other threads about degaussing and others about physical destruction.