Koozali.org: home of the SME Server

Configurazione cygwin - rsyncd

Offline wiserd

  • ***
  • 51
  • +0/-0
Configurazione cygwin - rsyncd
« on: September 09, 2008, 01:26:51 PM »
Buongiorno a tutti,

sto tentando di backuppare un pc windows con affa.

Ho seguito l'installazione guidata e non ho avuto probelmi fino a qui:

Quote
Create the /etc/rsyncd.conf configuration file. Replace the placeholder AFFA_IP by the ip address of your Affa server.

gid = 544
uid = 18
hosts allow = AFFA_IP
auth users = affa
secrets file = /etc/rsyncd.secrets
strict modes = true
read only = true
use chroot = no
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log

[AFFA]
path = /cygdrive
comment = cygdrive root dir

Uid 18 is the userid of the System account. Gid 544 is the groupid of the Administrators group (may be shown as root/gid 0 on the Cygwin console).

i link delle guide sono:

http://wiki.contribs.org/Affa#Backing_up_a_Windows_computer

http://wiki.contribs.org/Rsyncd_setup_on_a_windows_computer_for_use_with_Affa_backup


Ho dei problemi ad installare l'rsyncd come servizio su windows xp, la guida mi fa dare questi comandi:

Quote
Install rsyncd as a service.

cygrunsrv --install "rsyncd" --path /usr/bin/rsync --args "--daemon --no-detach" \
 --desc "Starts a rsync daemon for accepting incoming rsync connections" \
 --disp "Rsync Daemon" --type auto

dando:
Code: [Select]
cygrunsrv --install "rsyncd" --path /usr/bin/rsync --args "--daemon --no-detach"
mi da:
Code: [Select]
cygrunsrv: Given path doesn't point to a valid executable
Try `cygrunsrv --help' for more information.


Ci ho provato in tutti i modi :( :( qualcuno mi sa aiutare?? sono quasi alla fine  :D :D :D

Grazie

Daniele
Meglio perdere un attimo nella vita, che la vita in un attimo...

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Configurazione cygwin - rsyncd
« Reply #1 on: September 09, 2008, 04:08:03 PM »
Quote
Install rsyncd as a service.

cygrunsrv --install "rsyncd" --path /usr/bin/rsync --args "--daemon --no-detach" \
 --desc "Starts a rsync daemon for accepting incoming rsync connections" \
 --disp "Rsync Daemon" --type auto
This is a single command... under linux the "\" will cause the command to continue to the next line; under windows you need to type the entire command on one line, like this:
Code: [Select]
cygrunsrv --install "rsyncd" --path /usr/bin/rsync --args "--daemon --no-detach" --desc "Starts a rsync daemon for accepting incoming rsync connections" --disp "Rsync Daemon" --type auto

Offline wiserd

  • ***
  • 51
  • +0/-0
Re: Configurazione cygwin - rsyncd
« Reply #2 on: September 09, 2008, 04:29:17 PM »

This is a single command... under linux the "\" will cause the command to continue to the next line; under windows you need to type the entire command on one line, like this:
Code: [Select]
cygrunsrv --install "rsyncd" --path /usr/bin/rsync --args "--daemon --no-detach" --desc "Starts a rsync daemon for accepting incoming rsync connections" --disp "Rsync Daemon" --type auto

Tutto a posto, il comando lo inserivo con la sintassi giusta, nell'installazione di cygwin mi era sfuggita la spunta di rsync e quindi non era installato.

Grazie

D
Meglio perdere un attimo nella vita, che la vita in un attimo...