Re: [BackupPC-users] Backing up laptop as available

2008-06-18 Thread Les Mikesell
mark k wrote:
> You could just setup an aggressive wake up schedule, and adjust the
> black out schedule for those clients accordingly, of course it would
> fail every time the wake up schedule tried to backup that client. You
> can set it to wake up every 15 minutes if you want by doing 13.25,
> 13.50, 13.75 etc...
> 

The blackout schedule only takes effect after PCs have been determined 
to be available outside of it for several days.  For intermittently 
connected laptops that may be never.  If they are DHCP-addressed, you 
need to include the network ranges to search in  $Conf{DHCPAddressRanges}.

-- 
   Les Mikesell
[EMAIL PROTECTED]


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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/


Re: [BackupPC-users] Backing up laptop as available

2008-06-18 Thread Kurt Tunkko
Curtis Vaughan wrote:
> I was wondering if there was a way to make backuppc backup laptops as the 
> become available on the network.

I thought about the same procedure and as an enhancement backup Laptops 
when they are connected via (Open-)VPN.
While I had not enough time to explore this in detail a solution for 
your problem might be:

1) Check if your client-laptop has a certain IP
2) connects to the BackupPC-server vis SSH and request a backup from the 
command line (I think there is an option to make BackupPC starting a 
backup from the command line)

Assuming that your laptops are running Windows, you can use this batch 
file to run command based on the IP the client-PC has.
You could run this script in taskplaner or start it when after you made 
a connection to network. IBM Access Connections offers this feature.

- - 8< - -

@echo off
:: for error tracking, you should set echo on
:: This Script can be found at (german language):
:: http://www.supportnet.de/fresh/2005/12/id1211340.asp

IPCONFIG | FINDSTR "IP-Adress" >ip.tmp
FOR /F "tokens=2,3,4 delims=:. " %%a IN (ip.tmp) DO SET SubNet=%%a.%%b.%%c
DEL ip.tmp

IF %SubNet% == 192.168.178 GOTO F1
IF %SubNet% == 192.168.2 GOTO F2
GOTO ERR

:F1
:: Assuming that Subnet 192.168.178.* is your company address
ssh [EMAIL PROTECTED] COMMAND-TO-START-BACKUP-OF-CLIENT
GOTO END

:F2
:: Assuming that subnet 192.168.2.* is another subnet
echo ANOTHER COMMAND THAT SHOULD BE RUN, IN THIS SUBNET
GOTO END

:ERR
echo There has been an error, or your client is in another subnet.
GOTO END

:END
pause
:: You can also delete the line above


- Kurt


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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/


Re: [BackupPC-users] Backing up laptop as available

2008-06-18 Thread mark k
You could just setup an aggressive wake up schedule, and adjust the
black out schedule for those clients accordingly, of course it would
fail every time the wake up schedule tried to backup that client. You
can set it to wake up every 15 minutes if you want by doing 13.25,
13.50, 13.75 etc...

On Wed, Jun 18, 2008 at 4:05 PM, Curtis Vaughan <[EMAIL PROTECTED]> wrote:
> I was wondering if there was a way to make backuppc backup laptops as the
> become available on the network. I don't want it to be dependent on the
> user (I saw something about users starting the process themselves using
> Unison).
> If there is no such thing, I could of course set a schedule for when
> certain laptops are in the office. But it would not be consistent.
>
> Thanks!
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> 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/
>



-- 
Calvin Coolidge  - "I have never been hurt by what I have not said."

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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/