On 06/21 06:07 , Patrick Bégou wrote:
> Hello
> 
> I'm using BackupPC 3 for many local PCs. I would like now to backup some
> data from a remote server, located in another entity and where I need to
> go throught a frontend
> 
> BackupPC <<------->> Frontend <<--------->> serveur-with-data


The way I solved this, after a couple of years of experimentation is with
'autossh'. I installed the autossh package and configured a file called
/etc/autossh.hosts with the following content:

-NL 2233:10.11.22.1:22 firewall.example.com -l rte
-NL 2222:192.168.111.1:22 firewall.example2.com -l rte

At boot time this will start SSH tunnels to two different remote networks by
logging into Linux firewalls on those networks. It will also keep those
tunnels alive if they go down.

In my per-host BackupPC config files I use lines like this:

$Conf{RsyncClientCmd} = '$sshPath -q -x -l rtebakup -p 2233 127.0.0.1
/usr/bin/sudo /usr/bin/rsync $argList+';

and this:

$Conf{RsyncClientCmd} = '$sshPath -q -x -l rsyncbackup -p 2222 127.0.0.1
/usr/bin/sudo /usr/bin/rsync $argList+';

This has been working fine for several years now.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to