SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
backuppc and excluding ip ranges?
Author Message
Post backuppc and excluding ip ranges? 
I am wondering if it's possible already, or how difficult it might be to change the code for backuppc to allow it to skip a machine if it is not in a certain subnet mask.

In my network, I have multiple sites.   Some of the sites have slow T1 connections between them, so I have backuppc servers at them to back up directly on the LAN.


This works great, but some of the machines (windows) are laptops, and people sometimes bring the laptop to another location.


All these locations are tied together, so backuppc can still see (ping) the laptop even though it's in another building.


The only real difference is that machine will pick up a dhcp address for that building.   The address will be in a different subnet, for example,  192.168.2.x instead of 192.168.1.x.


It would be great if a flag could be set to tell backuppc to only backup a machine if it is in a specific subnet range (192.168.2.x) and to skip it if not.


Is this already possible, or where might a change be made in the code for something like that?

View user's profile Send private message
Post backuppc and excluding ip ranges? 
On Thu, 2011-11-10 at 15:56 -0500, SSzretter wrote:


It would be great if a flag could be set to tell backuppc to only
backup a machine if it is in a specific subnet range (192.168.2.x) and
to skip it if not.

You can write a ping script that will test the ip the client has, or you
can tweak the latency test down a bit as I am guessing the T1 connection
has higher latency.

--
Tim Fletcher <tim < at > night-shade.org.uk>


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post backuppc and excluding ip ranges? 
On Thursday 10 November 2011 21:56:39 SSzretter wrote:
I am wondering if it's possible already, or how difficult it might be to
change the code for backuppc to allow it to skip a machine if it is not in
a certain subnet mask.

In my network, I have multiple sites. Some of the sites have slow T1
connections between them, so I have backuppc servers at them to back up
directly on the LAN.

This works great, but some of the machines (windows) are laptops, and
people sometimes bring the laptop to another location.

All these locations are tied together, so backuppc can still see (ping) the
laptop even though it's in another building.

The only real difference is that machine will pick up a dhcp address for
that building. The address will be in a different subnet, for example,
192.168.2.x instead of 192.168.1.x.

It would be great if a flag could be set to tell backuppc to only backup a
machine if it is in a specific subnet range (192.168.2.x) and to skip it if
not.

Is this already possible, or where might a change be made in the code for
something like that?

Three things I immediately think about:
- Don't use hostnames, use IP-addresses. If you still want the names in the
config (and/or don't move the existing directories), set the ip in the
ClientNameAlias.
- If the ping to the remote sites is longer then the local ping, reduce the
PingMaxMsec for these hosts.
- Replace the call to ping for these host with a command involving the
correct ip instead of $host.

Have fun,

Arnold

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post backuppc and excluding ip ranges? 
Tim Fletcher wrote at about 21:21:45 +0000 on Thursday, November 10, 2011:
On Thu, 2011-11-10 at 15:56 -0500, SSzretter wrote:


It would be great if a flag could be set to tell backuppc to only
backup a machine if it is in a specific subnet range (192.168.2.x) and
to skip it if not.

You can write a ping script that will test the ip the client has, or you
can tweak the latency test down a bit as I am guessing the T1 connection
has higher latency.


You could also write a DumpPreUserCmd script to check the subnet...

The point is that there is no need (and in fact it would be a bad
idea) to code such a specific case into BackupPC. Rather, Backuppc
already has several 'hooks' that allow you to write simple scripts to
test this case and many other one-off use cases that might be interesting
to various individual users.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB