Solved

backup on a remote DLT drive using ssh

Posted on 2004-10-02
5
385 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

708 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

20 Experts available now in Live!

Get 1:1 Help Now