LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-08-2008, 12:56 AM   #1
sunram
LQ Newbie
 
Registered: Oct 2007
Location: India
Posts: 23

Rep: Reputation: 15
how to take Remote_host Backup in solaris 9?


Dear all,

we have two v880 server both are running solaris 9.One server is production (online) server and other one is development server. a tape is connected in production server.daily backup are running only production server.

so we are decide take daily backup in development server. using the remote backup.that command is

ufsdump remote_host_name:/dev/rmt/1 /export

so run that command but it is displayed

root@sunmmcsvr1 # ufsdump 0ucf olimms.com:/dev/rmt/1 /export
DUMP: permission denied
DUMP: Cannot connect to tape host `olimms.com'
DUMP: The ENTIRE dump is aborted.
root@sunmmcsvr1 #

we can't do any thing. so please tel me what is the problem?, how to rectified?
 
Old 01-08-2008, 01:39 AM   #2
scoban
Member
 
Registered: Nov 2004
Location: Turkey
Distribution: Slackware
Posts: 145

Rep: Reputation: 16
It is not safe, but you can make a .rhosts file in / file system and put the name of the client machine in it.
 
Old 01-08-2008, 07:04 AM   #3
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
I did that by setting up ssh certificates for a backup user and then piping the ufsdump through ssh. When it gets to the other end, you are on an ssh pipe with standard out, so you want to pipe that through dd to the tape.

I was doing it on Solaris 9 with the internal DDS/3 drives on E250's. Following is a rather detailed command line that uses variables from the backup script as well as snapshots, but it should give you the idea:

( /usr/lib/fs/ufs/ufsdump ${LEVEL}cnlTfuN 2h - ${RDEV} ${WHICHSNAP}; STATCODE=$?; echo ${STATCODE} > ${CODEFILE} ) | su - backup -c "ssh ${TAPESERVER} \"dd obs=64b of=${TAPDEV}\"";

Note that the first several commands on the line are in parenthesis to make them a subprocess so that I can capture the status code into a temporary file (this is all in ksh). The output of that subprocess is piped to the su. So the script is running as root, the ufsdump is running as root, but the certificates for the ssh are for the backup user. The ssh runs in the su, and the dd runs within the ssh on the other end.

Of course, another option is to adopt something like Amanda and use it to do backups. That's what I did when I got a tape library and consolidated all my server backups to go to a backup server.
 
Old 01-08-2008, 04:04 PM   #4
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by choogendyk View Post

Of course, another option is to adopt something like Amanda and use it to do backups. That's what I did when I got a tape library and consolidated all my server backups to go to a backup server.
Or rsync.
It only transports the changed files and directories across the network from development-server to backup-server. It is quite easy to run rsync over ssh.

Regs, C
 
Old 01-08-2008, 06:37 PM   #5
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
thing is ... Amanda will use ufsdump over ssh and can do it with fssnap snapshots in Solaris 9. If all he wants is to copy some user files, then maybe rsync would work, but since he was talking a pair of V880's running Solaris 9 and using ufsdump, I figured he might be wanting to actually back up his partitions using native Solaris tools that would allow him to do cold metal recoveries. Of course, only the OP can say.
 
Old 01-09-2008, 11:46 AM   #6
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by choogendyk View Post
thing is ... {Amanda will use ufsdump ......}
You 're right, Chris.

Thanks, C
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backup software for solaris? xpucto Solaris / OpenSolaris 5 02-08-2007 10:12 AM
backup techniques in solaris. waqar Solaris / OpenSolaris 3 03-12-2006 03:24 PM
Filter REMOTE_HOST and REMOTE_ADDR with Squid proxy j1mmyd3an Linux - Networking 1 03-20-2005 10:48 PM
Solaris 10 Upgrade - Generating Backup List btmiller Solaris / OpenSolaris 1 02-21-2005 01:36 AM
What does the syntax-- $ENV{'REMOTE_HOST'} --mean in Perl? Bassam Programming 3 03-31-2004 07:54 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration