1830899 Members
3421 Online
110017 Solutions
New Discussion

Re: fbackup using remsh

 
Charles Gaffney_1
Occasional Advisor

fbackup using remsh

What is the exact command for usieng remsh and fbackup to do backups. I read it here in the forums before, finally got "remsh" to work, but have lost the fbackup/remsh command.

Thanks.
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: fbackup using remsh

S.K. Chan
Honored Contributor

Re: fbackup using remsh

If remsh is working say from systemA to systemB and you want to backup systemA's FS to the drive on systemB you would ..
On systemA
==========
Example of backing up everything in /opt
# cd /opt
# fbackup -f systemB:/dev/rmt/0m -i .
Charles Gaffney_1
Occasional Advisor

Re: fbackup using remsh

Maybe I am saying this wrong. I want to backup the files to a server, THEN send those files to tape. Kind of an online archive.
Robert-Jan Goossens
Honored Contributor

Re: fbackup using remsh

Robert-Jan Goossens
Honored Contributor

Re: fbackup using remsh

Michael Duthie
Trusted Contributor

Re: fbackup using remsh

Not sure what you???re trying to accomplish but if it is a small system maybe you should look at Ignite/UX to create the archive on a different server. I know of people who do this then backup the archive server to tape.
Chuck J
Valued Contributor

Re: fbackup using remsh

Hi There

remsh is used on one server to execute a command that exists on the other server. The server in which you wish to execute the command on, must be able to give you access - so for example, if you are on the backup machine, you would put an entry inthe .rhosts file on the client for the backup machine first. Then:

You could do something like this:

On your Backup server, you could create a script:

###############################
#!/usr/bin/sh

Host=clientsvr
ToBackup=`remsh $Host hostname`

remsh $y /home/bin/backup.sh

###############################

This would then execute the script called
/home/bin/backup.sh

Not exactly sure what you are trying to do here, but fbackup is a command that combines the features of dump & ftio and you would use it for example to copy files to tape. So you in your file:
/home/bin/backup.sh

on the clientsvr you could have something like:

###############################
#!/usr/bin/sh

/usr/sbin/fbackup -i /oracle/bkup -f /dev/rmt/0m

###############################

Hope that helps you.

Chuck J


Chuck J
Valued Contributor

Re: fbackup using remsh

Woooooops, there is a small error in the first script. It should read:

###############################
#!/usr/bin/sh

Host=clientsvr
ToBackup=`remsh $Host hostname`

remsh $ToBackup /home/bin/backup.sh

###############################

Chuck J
Steve Steel
Honored Contributor

Re: fbackup using remsh

Hi

It was probably this

Remote backup on a local DAT/DSS tape drive.

In case you would like to make a backup from a remote system to a local
DAT/DSS tape drive, you can use this comand:

remsh remote_name "/etc/fbackup -f local_name:/dev/rmt/0m -i . -0 -v"

remote_name= system that runs the backup.
local_name = system that owns the DAT/DSS drive.
The options can be set at discretion.

If you are logged-in on the other system, then:
/etc/fbackup -f remote_name:/dev/rmt/0m -i . -0 -v



frecover then Restore of backup over network.

Restore from a remote DAT/DDS drive

/etc/frecover -xi/directory -f remote_name:/dev/rmt/0m

Remote restore with local DAT/DDS drive

remsh remote_name " /etc/frecover -xi/directory -f local_name:/dev/rmt/0m"


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)