Pagina 1 di 1

[Risolto] [Server] BackupPC, file di configurazione per host su windows XP

Inviato: sabato 28 marzo 2009, 7:30
da Doddy81
Salve gente! Ho installato sul mio pc Intrepid e dato che volevo usarlo come server di backup ho installato BackupPC.
Dal lato server tutto sembra funzionare, a parte lo script in perl che mi serve per gestire il backup tramite rsync di un pc con Win XP Pro.
Per la configurazione dello script ho seguito le istruzioni in questa pagina web (è l'unica che ho trovato, forse ce ne sono altre ma non sono riuscito a trovarle :-[)

http://taksuyama.com/?page_id=8

Praticamente ho impostato lo script per fare il backup di un intero hard disk (per ora... l'idea sarebbe di fare backup di tutti i dischi che mi interessano, e sono 4) e lo ho caricato in /etc/backuppc.

Il problema è che quando carico la pagina web di backuppc ed avvio il backup mi ritrovo questo messaggio:

# Last status is state "idle" (backup failed) as of 3/28 06:09.
# Last error is "Can't read PC's config file: Couldn't execute /etc/backuppc/xxxx.pl: syntax error at /etc/backuppc/xxxxx.pl line 20, near "path "". 

ho inserito xxx.pl ma in realtà è il nome del pc... lo stesso vale per l'IP e l'username del file di configurazione che posto qui sotto:

Codice: Seleziona tutto

#
$Conf{XferMethod} = 'rsync';
#
# Tell BackupPC which user name and password to use. This should
# match the userName:password pair in the C:\rsyncd\rsyncd.secrets
# file on the client.
#
#
# Tell BackupPC which share to backup. This should be the name
# of the module from C:\rsyncd\rsyncd.conf on the client (the
# name inside the square brackets). In the sample rsynd.conf
# file the cDrive module is the entire C drive.
#
#
# Link the IP address to the host name

[audioDrive]
    path = e:
    comment = Entire Drive
    auth users = xxxx,backuppc 
    secrets file = c:/rsyncd/rsyncd.secrets 
    hosts allow = xxx.xxx.xxx.xxx
    strict modes = false 
    read only = true 
    list = false

ora... dato che ho solo questo sito non posso fare confronti con altri howtos... così provo a chiedere qui... c'è qualcuno che ha già fatto questo tipo di configurazione?
Spero che qualcuno sappia dove potrebbe trovarsi l'errore... sto impazzendo da 2 giorni  ::)

grazie mille in anticipo per l'aiuto  (b2b)

Re: [Server] BackupPC, file di configurazione per host su windows XP

Inviato: domenica 29 marzo 2009, 20:06
da Doddy81
nessuno che abbia un'idea di come dovrebbe andare impostato il file?  :(

[Risolto] Re: [Server] BackupPC, file di configurazione per host su windows XP

Inviato: giovedì 14 maggio 2009, 22:13
da Doddy81
Mi sono autorisolto il problema...
Innanzitutto ho lasciato perdere cygwin e ho scaricato un pacchetto .zip contenente solo l'indispensabile per poter usare rsync su windows da questo sito:

http://sourceforge.net/project/showfile ... e_id=88133

fatto questo lo ho estratto e copiato su c:\rsync

mi sono impostato il file rsync.secrets e il file rsync.conf con la stessa identica configurazione che avevo postato precedentemente e mi sono creato il file .pl da trasferire sul server di backup.

fatto questo mi sono installato OpenSSH per windows XP scaricando il pacchetto .zip a questo indirizzo:

http://sourceforge.net/project/download ... 040709.zip

dopo aver creato le chiavi SSH e averle scambiate con il server ho avviato il demone OpenSSH e il demone Rsyncd e tutto il sistema ha funzionato benissimo  (b2b)