This solution assumes that you have access to the router setup page.

(After writing this, I realized that you should confirm w/ the
developers whether BackupPC's rsync module supports the --port option).

Use rsync over ssh, or rsyncd as the transport.  Lets assume rsyncd for
this example.  Rsyncd uses port 873 by default, but that can be changed
in rsyncd.conf (using the 'port' option).  So configure your machines
like this:

machine A:   port 873
machine B:   port 1873
machine C:   port 2873

You can pick whatever port numbers you want, as long as those ports
aren't currently in use by the machine in question.

Next configure your router to send all requests on port 873 to machine
A.  Similarly, requests on port 1873 should be sent to machine B, and
port 2873 requests go to machine C.

Finally, configure per-host rsync options in BackupPC to add the
appropriate port for the machine to be backed up.  So $Conf{RsyncArgs}
for machine B should contain:  --port=1873, and for machine C it should
contain:  --port=2873.  Machine A doesn't need special configuration,
because it's using the default port 873.

The same thing could be done with rsync over ssh.  You need to configure
the ssh daemon on each host to listen on a different port, then tell
your router to "port forward" the different ports to the appropriate
machines, and then configure BackupPC to attempt connection on the
appropriate ports.  (Note that the default port for ssh is port 22).

-Rob

Cory Rivera wrote:
> Hello,
>  
>  I help manage a small network of Windows computers at a research facility. 
> My supervisor and I have chosen to create a simple backup server using Ubuntu 
> 7.04 and BackupPC. The problem is, we've only been given a limited number of 
> IP addresses from the University that maintains this facility's internet. As 
> a solution, we recently purchased a few routers so that we can group machines 
> under one IP address, in turn freeing up IP addresses for later use. So in 
> short, we have some computers that have been statically assigned IP addresses 
> (with corresponding host names) and some routers that have statically 
> assigned IP addresses (with corresponding host names) and also have computers 
> behind them under the common 192.168.XXX.XXX local network.
>  
>  I recently built the Ubuntu Feisty backup server and have statically 
> assigned it an IP address given to us by the University. I can successfully 
> backup Windows PCs that are also statically assigned IP address (i.e. not 
> behind routers). The problem, however, is that I can't seem to figure out how 
> to backup PCs that are behind the routers. I'm using samba and have set up 
> file sharing on the "routered" computers exactly how I set up file sharing on 
> the "non-routered" computers.
>  
>  To further illustrate the situation:
>  
>  server.university.edu -> internet (campus network?) -> router.university.edu 
> -> computer(NETBIOS).university.edu
>  
>  How can I backup computer.university.edu?
>
> I've been told that setting up a VLAN might be a solution - but if there is 
> an easier approach I'd like to take it.  If not, could some one describe to 
> me how to set up a VLAN for such purposes or at least direct me to a proper 
> walkthrough?
>  
>  Regards,
>  KawiRider
>
>   
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to