cancel
Showing results for 
Search instead for 
Did you mean: 

network backup?

 
SOLVED
Go to solution
Highlighted
fizan
Super Advisor

network backup?

we have two servers eg: server A and Server B
so for backup we will generate the tar -cvf in serverA and sftp to serverB, then from serverB will fire cmd as tar -rvf bcoz tape drive is connected only on serverB,

1, Is there any option to fire the tar backup directly from ServerA to the tape drive connected to ServerB
13 REPLIES 13
Highlighted
Matti_Kurkela
Honored Contributor
Solution

Re: network backup?

SFTP? So you're using SSH, right?

I have the feeling that reading the SSH FAQ might be useful... oh yes, please see:

http://www.employees.org/~satch/ssh/faq/ssh-faq-5.html#ss5.1

MK
MK
Highlighted
Tim Nelson
Honored Contributor

Re: network backup?

you could use the rmt facility ( man rmt ) but I have never had any luck with it. very slow.

you could nfs mount the directory from serverA to serverB and skip the ftp/sftp step. and then allow serverA to remote into serverB and kick off the backup.

lots of options


Highlighted
Steven E. Protter
Exalted Contributor

Re: network backup?

Shalom,

Tape drives are not shared devices that can be used by remote servers.

Serviceguard may offer this feature, but I've not seen that done.

Therefore the process must be two step.

1) Transfer the file or create it on the remote system that has the tape drive.
2) Start a process that writes the tar file to tape.

This link will help you set up your systems to do this without password prompts:
http://www.hpux.ws/?p=10

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
fizan
Super Advisor

Re: network backup?

with out sharing it through NFS it is possible i want to know how it can be done.
Highlighted
OldSchool
Honored Contributor

Re: network backup?

read the link Matti posted re using ssh to "pipe" the output to a "dd" running on the remote server(with tape)

see Steven's regarding "passwordless" ssh...

that doesn't require any NFS mounts.
Highlighted
fizan
Super Advisor

Re: network backup?

# tar cvf - | ssh user@host "dd of=/dev/tape"

tar -cvf /rman/backup |ssh test@10.10.49.30 "dd of=/dev/rmt1"

right, then for passwdless login
1. generate the public key of test from serverA and add it in the serverB s test users home directory's .ssh/authorised_keys

2.basically /rman/backup is present in serverA
Highlighted
Dennis Handly
Acclaimed Contributor

Re: network backup?

>then from serverB will fire cmd as tar -rvf

You can't use -r for tape.

>SEP: Tape drives are not shared devices that can be used by remote servers.

I assume some industrial strength backup product like Data Protector allows for that?
Highlighted
Steven Schweda
Honored Contributor

Re: network backup?

> I assume some industrial strength backup
> product like Data Protector allows for
> that?

VMScluster.

http://h71000.www7.hp.com/doc/82final/aa-pv5nj-tk/00/00/87-con.html

You can use the OpenVMS MSCP, which is the
mass storage control protocol, or TMSCP,
which is the tape mass storage control
protocol, server software to make tapes
accessible to nodes that are not directly
connected to the storage devices.

Do it all the time.

alp $ show device /full dlt

Magtape ALP$MKB400:, device type Quantum DLT4000 CPQ DRV, is online, record-
oriented device, file-oriented device, served to cluster via TMSCP Server,
[...]

Or "man rmt", for a less feature-rich
environment.
Highlighted
fizan
Super Advisor

Re: network backup?

experts what is the final conclusion,

whether i can run the following cmds as mentioned in the last scrap?