El día Tuesday, November 24, 2009 a las 11:44:52AM +0100, n dhert escribió:

> To use the restore command (dump/restore) with a dump file on a remote
> machine, the man restore tells you can use the syntax restore -rf
> u...@host:file, this uses rcmd(3)
> If from the target machine (on same subnet as remotemachine),
> logged in as root, I enter
> targetmachine# cd /home/testrestore
> targetmachine# tar -rf root@ IP_of_remote_machine:/home/file.dmp

Why you are talking here about tar(1) if you need restore(1M)?

> I get
> IP_of_remote_machine: Connection refused
> login to IP_of_remote_machine as root failed
> There needs some more setup for this in order to work, (hosts.equiv,
> .rhosts  or something ??).
> How exactly ?
> (I just need this for the restore, certainly not to be a permanent way of
> transferring files)

just use another normal user and not 'root'; you only need read access
to the file on the remote server;

> 
>  <r...@%20machine.domain:/dir1/dir2/file.dmp>

I'm usingt for restore:

# newfs /dev/daXXXXX
# mount /dev/daXXXXX /mnt
# cd /mnt

# ssh g...@albatros cat dumpsRebelion-20080825/usr.dmp.gz | gzip -dc | restore 
-r -f -

(my dumps are compressed there);

HIH

        matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <g...@unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to