ufsdump ufsrestore with ssh to/from remote system's disk/tape drive
Posted on 2008-11-18
Have 3 questions :
I've done :
ufsdump 0uf - / | ssh remote_user@remote_svr "cd /oradata/bk; cat > svr1.dmp; gzip svr1.dmp*"
If I would like to recovery my svr1 in the event the root partition is corrupted/damaged, what's
the steps command to do it to ufsrestore from remote_svr:/oradata/bk/svr1.dmp.gzip?
Kindly include "installboot" command.
The local server does not have a tape drive & I would like to ufsdump to remote_svr's tape
drive via ssh. Is the command :
ufsdump -u0f - /var | /path/to/ssh username@remotesys "dd bs=1024 of=/dev/rmt/0cn"
Is "bs=1024" applicable to tape drive & can I use a higher value, say "bs=1048576" be
used here to increase the speed of the backup (as I've seen in disk to disk "dd", a high
value of bs is essential to speed up backup)
This "ufsdump+ssh" should be the equivalent of "ufsdump 0uf /dev/rmt/0cn /var" so
that in the event I could find an external SCSI tape drive, I would like to be able to just
do "ufsrestore -ivf /dev/rmt/0c . "
What's the equivalent command to restore from the backup taken in point (2) above
(using ufsrestore + ssh)