Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rsync e password-file [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Wed Oct 11, 2006 9:32 am    Post subject: rsync e password-file [RISOLTO] Reply with quote

Ciao a tutti, sto provando a creare un sistema di backup tra i miei client e il mio server utilizzando rsync. Dopo alcune prove ho notato che lanciando rsync senza particolari configurazioni posso lanciare un comando come questo con successo:

Code:

blackman@altair ~ $ rsync -Cavz Projects sideralis:backup


che mi permette di fare il sync della dir Projects dentro la dir backup sulla macchina sideralis (se l'utente blackman esiste in entrambe le macchine)

Vorrei automatizzare questa cosa ma non riesco a passare la password per l'utente blackman sul server sideralis in automatico. Ho visto che esiste l'opzione password-file ed eventualmente anche una variabile di sistema settabile ma inesorabilmente mi domanda la password:

Code:

blackman@altair ~ $ rsync --password-file=passwordfile Projects sideralis:backup
Password:


Se gliela fornisco (la stessa che ho scritto nel file "passwordfile") rsync continua con successo.

Qualche idea?
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk


Last edited by federico on Wed Oct 11, 2006 12:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Wed Oct 11, 2006 10:08 am    Post subject: Reply with quote

potresti aggirare il problema usando rsync over ssh
anche se forse intendi risolvere il problema solo con rsync
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Wed Oct 11, 2006 10:22 am    Post subject: Reply with quote

X-Drum wrote:
potresti aggirare il problema usando rsync over ssh
anche se forse intendi risolvere il problema solo con rsync

Potrei provare ma preferirei evitare ssh perche' non penso di aver necessita' di criptazione ssl ma soprattutto perche' fare grossi trasferimenti via ssh implica un discreto consumo di banda e processore per le macchine...
Nel frattempo sto continuando a provare, se proprio non c'e' modo passo all'ssh style ^_^
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Oct 11, 2006 10:31 am    Post subject: Reply with quote

ehm... rsync, per il trasporto, usa ssh di default.
usa l'autenticazione key-based.

edit:
spostato in discussione.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Wed Oct 11, 2006 11:07 am    Post subject: Reply with quote

makoomba wrote:
ehm... rsync, per il trasporto, usa ssh di default.
usa l'autenticazione key-based.

Stava iniziando a venirmi il dubbio...
Non capisco per inciso un'altra cosa riguardo il demone di rsyncd... Configurare delle sezioni tipo [gentoo-portage] serve solo per la parte di download? Non capisco in che punto andrebbe comunque inserita la password dalla parte server se si riuscisse ad utilizzare il trasporto rsync...
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Oct 11, 2006 11:26 am    Post subject: Reply with quote

rsync prevede comunque un meccanismo di autenticazione nel caso venga utilizzato come server standalone, quindi senza l'ausilio di una remote shell (ssh).
le info relative alla password fanno probabilmente riferimento all'auth di rsyncd.

dubito che a te serva far girare il demone considerato che ti interessa semplicemente fare dei bacup.

in questo caso, l'autenticazione è demandata ad ssh: il demone viene comunque lanciato sulla macchina remota solo che tutto il traffico passa attraverso la connessione ssh
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Wed Oct 11, 2006 12:19 pm    Post subject: Reply with quote

Ce l'ho fatta col metodo ssh e senza server rsyncd sulla macchina remota... Sperando che sia il sistema corretto, ho sistemato questa fase dei miei problemi :)
Grazie!
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum