Hi Raphael,

* Raphael Melo de Oliveira Bastos Sales <[EMAIL PROTECTED]>,
Friday, June 24, 2005, 8:27:02 PM: 

> I have one machine (Machine 1) that I need backup its files
> periodically. I also have another machine (Machine 2) that will hold
> the backup. Machine 2 can "see" (make requests to) Machine 1, but the
> opposite isn't true. The network is covered by a firewall, so I don
> need a paranoid solution. I was thinking about doing the following:
[strange idea involving netcat]
> But before doing this, I'd like some suggestions or may be some better
> solutions you guys might know.
[...]

Using netcat, you would send all your data, including the login
passwords to your machine, its ssh-host-key and so on, unencrypted
over your network. You don't want that, except when its a cross-cable
and the machines are just some meters apart...

Why not use ssh?

>From machine 2 you can

ssh [EMAIL PROTECTED] "cd /; tar --exclude=./proc --excluse=./sys -cz
." | dd of=/backupfrommachine1.tgz

With minor changes, you could use that in the other direction, too.

cd /; tar --exclude=./proc --excluse=./sys -cz . | ssh
[EMAIL PROTECTED] "dd of=/backupfrommachine1.tgz"

HTH

 Timo


-- 
gentoo-user@gentoo.org mailing list

Reply via email to