Hi Johan,

Here is the output of ./BackupPC_dump -v -f myhost :

Results

cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84)
bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.048 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.048/0.048/0.048/0.000 ms

cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84)
bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.046 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.046/0.046/0.046/0.000 ms

CheckHostAlive: returning 0.046
Executing DumpPreUserCmd: /etc/BackupPC/ssh-wrapper -p 3022 -f -L
7001:internalremoteip:873 [EMAIL PROTECTED] sleep 20
cmdSystemOrEval: about to system /etc/BackupPC/ssh-wrapper -p 3022 -f -L
7001:internalremoteip:873 [EMAIL PROTECTED] sleep 20
cmdSystemOrEval: finished: got output
full backup started for directory fortune
started full dump, share=hidden
Error connecting to rsync daemon at localhost:7001: inet connect: Connection
refused
Got fatal error during xfer (inet connect: Connection refused)
cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84)
bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.049/0.049/0.049/0.000 ms

cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 localhost
cmdSystemOrEval: finished: got output PING localhost (127.0.0.1) 56(84)
bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.047 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.047/0.047/0.047/0.000 ms

CheckHostAlive: returning 0.047
Backup aborted (inet connect: Connection refused)
dump failed: inet connect: Connection refused


I have not managed to see what 'exact' command is sent after the wrapper...

Thanks for your support !

Francis





-----Message d'origine-----
De : Johan Ehnberg [mailto:[EMAIL PROTECTED] 
Envoyé : 10 mai 2007 09:59
À : Francis Lessard
Cc : 'Craig Barratt'; 'BackupPC Users'
Objet : Re: [BackupPC-users] SSH Tunnel HOWTO for BackupPC

Hi,

Can you try running the Dump command manually and post me the output? 
The documentation tells you how.

Changing the SSH port will not mess with anything, as long as you have 
the same commands in BackupPC and on the command line.

I want to see your tunnel working, so hang in there :).

/johan

Francis Lessard wrote:
> Hi Johan,
> 
> You document on how to use ssh tunneling with BackupPc is brilliant. I
tried
> it and it works in test, but not in BackupPc.
> In my shell, loggued as backuppc (I replaced internalip, username,
gateway)
> 
>    [EMAIL PROTECTED]:/home$ /etc/BackupPC/ssh-wrapper -p 3022 -f -L
> 7001:internalip:873 [EMAIL PROTECTED] sleep 20
> 
> works good : SSH Started succesfully
> 
> After, ONLY this command have worked :
> 
>    [EMAIL PROTECTED]:/home$ rsync --port=7001
> [EMAIL PROTECTED]::myrsyncservice
> 
> I tried to used the --port=7001 argument in BackupPC Cgi + several combos,
> no success, I have not found in logs the complete rsync command that
> BackupPC sends. Maybe it could me debug... My only hint is the port 3022 I
> use instead of the standard port 22 on the ssh gateway. Could that mix
> things up ? 
> 
> Thank you for opinion on that.
> 
> 
> Regards,
> 
> Francis
> 
> 
> 
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] De la part de Johan
> Ehnberg
> Envoyé : 7 mai 2007 10:13
> À : Johan Ehnberg; Craig Barratt
> Cc : BackupPC Users
> Objet : Re: [BackupPC-users] SSH Tunnel HOWTO for BackupPC
> 
> Johan Ehnberg wrote:
>> Dear BackupPC users and developers,
>>
>> I have created a short HOWTO for BackupPC on using SSH tunnels 
>> automatically with each job. This is the first version, but it should be 
>> complete.
>>
>> The HTML version of the document can be found on:
>> http://www.ehnberg.net/johan/files/docs/backuppc-ssh-tunnel-howto.html
>>
>> Please feel free to try it out and send comments. It can also be added 
>> to the SSH FAQ later on, if it is useful.
>>
>> Best regards,
>> Johan Ehnberg
> 
> I have now been running this model for two weeks and it works like a 
> charm. I consider it production quality and it could be added to the 
> FAQ. It's mature software and a proven model - not much to prove there.
> 
> If my HOWTO is too long, only section 4 could be merged, of course. Or 
> it could be a page of it's own. In any case, it's free for use and 
> modification as long as my name is in it somewhere ;).
> 
> BTW. I am going to change my whole backup system from another program to 
> BackupPC; I was simply _very_ impressed by the smart use of rsync and 
> disk oriented intelligence:
> 
> Bacula: 3606 minutes for Full backup number n
> BackupPC: 46 minutes for Full backup number 1+n
> 
> Bacula: 113 GB disk usage for all jobs
> BackupPC: 63 GB disk usage for all jobs
> 
> Not to mention BackupPC handles partial backups, which is necessary for 
> the first data set over the Internet for very long jobs. Go BackupPC, 
> and thanks to Craig Barratt!
> 
> Best regards,
> Johan
> 

-- 
Johan Ehnberg

Email: [EMAIL PROTECTED]
GSM:   +358503209688
WWW:   http://www.ehnberg.net/johan/


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to