Solved

backup on a remote DLT drive using ssh

Posted on 2004-10-02
5
387 Views
Last Modified: 2013-12-27
Hi All,

I have two solaris machines. One of them has a backup drive attached to it, and I take backup of the other machine using ufsdump like this:
ufsdump 0ucf 111.111.111.111:/dev/rmt/0n /
And on the remote host, I've allowed my host to connect without a password in the .rhosts file. Which is not secure.

How can I do this implementation using SSH? I think using scp, but i'm not aware of the details.

Thanks.
0
Comment
Question by:kalmen
  • 2
  • 2
5 Comments
 
LVL 20

Expert Comment

by:tfewster
ID: 12211328
0
 
LVL 20

Assisted Solution

by:tfewster
tfewster earned 100 total points
ID: 12211344
P.S. Do you already have ssh set up to work without passwords?

I think the direct ssh replacement for your existing command would be:
ufsdump 0ucf - / | ssh 111.111.111.111 "dd of=/dev/rmt/0n"
0
 
LVL 38

Expert Comment

by:yuzh
ID: 12214073
Use:

ufsdump 0ucf - / | ssh root@111.111.111.111 "dd of=/dev/rmt/0n"

you might endup have to use "dd of=/dev/rmt/0n obs=128b", it depands on your
network connetions.

also see:
http:Q_20173314.html
0
 
LVL 1

Author Comment

by:kalmen
ID: 12214690
Thank you both.
Now, I come to an interesting question. How can I set up ssh to work without passwords? Do I install my key at the remote server's trusted keys?

0
 
LVL 38

Accepted Solution

by:
yuzh earned 400 total points
ID: 12214735
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now