Re: [BackupPC-users] Getting backuppc to wol a client

2011-09-06 Thread Robert E. Wooden
I am, please post your details.

Robert Wooden
Nashville, TN. USA

Computer Freedom? . . . Linux


On 09/06/2011 12:17 AM, Michael Stowe wrote:

 The latter part is a fairly trivial addition to the scripts I use to
 invoke shadow copies ... I'll provide details (and scripts) if anybody's
 interested.



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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/


[BackupPC-users] Getting backuppc to wol a client

2011-09-06 Thread egrimisu
Hi guys,
thanks for posting the small guide,

unfortunettly it does not work for me, the message that i get is 2011-09-06 
11:06:31 no ping response

what i did exacly is

create /etc/backuppc/wolping.bsh with the code in the guide, added owner 
backuppc and group www-data , 777 rights just to be sure
set PingPath to /etc/backuppc
deleted content for NmbLookupFindHostCmd (blank)
added to /etc/ethers a clinet pc's mac and hostname
what i haven't understood is who will execute wolping.bsh? how backuppc knows 
to execute that specific file?

Am i missing anythig?
thanks

+--
|This was sent by egrim...@yahoo.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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/


[BackupPC-users] Getting backuppc to wol a client

2011-09-06 Thread egrimisu
Hi guys,
thanks for posting the small guide,

unfortunettly it does not work for me, the message that i get is 2011-09-06 
11:06:31 no ping response

what i did exacly is

create /etc/backuppc/wolping.bsh with the code in the guide, added owner 
backuppc and group www-data , 777 rights just to be sure
set PingPath to /etc/backuppc
deleted content for NmbLookupFindHostCmd (blank)
added to /etc/ethers a clinet pc's mac and hostname
what i haven't understood is who will execute wolping.bsh? how backuppc knows 
to execute that specific file?

Am i missing anythig?
thanks

+--
|This was sent by egrim...@yahoo.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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/


[BackupPC-users] Getting backuppc to wol a client

2011-09-06 Thread egrimisu
Hi guys,
thanks for posting the small guide,

unfortunettly it does not work for me, the message that i get is 2011-09-06 
11:06:31 no ping response

what i did exacly is

create /etc/backuppc/wolping.bsh with the code in the guide, added owner 
backuppc and group www-data , 777 rights just to be sure
set PingPath to /etc/backuppc
deleted content for NmbLookupFindHostCmd (blank)
added to /etc/ethers a clinet pc's mac and hostname
what i haven't understood is who will execute wolping.bsh? how backuppc knows 
to execute that specific file?

Am i missing anythig?
thanks

+--
|This was sent by egrim...@yahoo.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Getting backuppc to wol a client

2011-09-06 Thread Michael Stowe
 I am, please post your details.

 Robert Wooden
 Nashville, TN. USA

These are my changes to Salik Rafiq's original script:
- Added args 3 and 4 to ping (bit of a hack)
- Replaced ethwake with wakeonlan
- Look up individual hardware addresses from files created with arp -a
machine  machine.wol for simplicity
- Save state of machine
- Directory is hardcoded to /usr/tools/wol for no particular reason
==

#!/bin/bash

#this script is totally designed for the backuppc ping command
#which is the first thing it does before it starts a backup
#this is a substitute which pings the machine, if it is not
#awake then it wakes it using a magic packet - using the wol.bsh script
#then pings again to make sure

PING=/bin/ping
ARG1=$1
ARG2=$2
ARG3=$3
ARG4=$4
WAKEHOST=$5
ETHWAKE=/usr/bin/wakeonlan
SLEEPTIME=3m

logger Backuppc pinging  $1 $2 $3 $4 $5

function getwol {
if [ -f /usr/tools/wol/$1.wol ]; then
   $hwaddr = $(cat /usr/tools/wol/$1.wol | cut -d  -f4)
else
   logger No MAC address for $1
   exit -1
fi
}

function fwol {
TO_WAKEUP=$1
getwol $1
sudo $ETHWAKE $hwaddr
}

$PING $ARG1 $ARG2 $ARG3 $ARG4 $WAKEHOST /dev/null 21

if [ $? -ne 0 ]; then
fwol $WAKEHOST
if [ $WOL_RES = FAIL ]; then
exit 1
fi
echo OFF  /usr/tools/wol/$WAKEHOST.state
sleep $SLEEPTIME
$PING $ARG1 $ARG2 $WAKEHOST
if [ $? -eq 0 ]
then
   logger success waking $WAKEHOST.
else
   logger unable to wake $WAKEHOST.
   exit 1
fi
else
   $PING $ARG1 $ARG2 $ARG3 $ARG4 $WAKEHOST
   echo ON  /usr/tools/wol/$WAKEHOST.state
fi

exit 0

===

This is the postusercmd.sh I use for every windows box:

#!/bin/bash
WINEXE=/usr/bin/winexe
UNAME=Username
PWD=Password
WRKGRP=WORKGROUP
BOX=$1
PID=$($WINEXE -U $UNAME -W $WRKGRP --password=$PWD //$BOX 'cmd /c echo '1'
 c:\backuppc\wake.up')
echo Rsync and shadow copy unloaded
if [ -f /usr/tools/wol/$BOX.state ]; then
   read wasoff  /usr/tools/wol/$BOX.state
   if [ $wasoff -eq OFF ]; then
  $WINEXE -U $UNAME --password=$PWD //$BOX 'shutdown -f -s -c Backup
Complete'
   fi
fi

==

The original is from http://www.goodjobsucking.com/?p=62 -- only the last
bit that reads the machine state and shuts it down cleanly has been added.
 (Works on XP and Windows 7.)


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Getting backuppc to wol a client

2011-09-06 Thread Michael Stowe
 Hi guys,
 thanks for posting the small guide,

 unfortunettly it does not work for me, the message that i get is
 2011-09-06 11:06:31 no ping response

 what i did exacly is

 create /etc/backuppc/wolping.bsh with the code in the guide, added owner
 backuppc and group www-data , 777 rights just to be sure
 set PingPath to /etc/backuppc

No.  PathPath is the path to the ping command, so in this case, it would
be /etc/backuppc/wolping.bsh -- not just the directory, which cannot be
executed.

This gets called by PingCmd, which in my case, is set to:
$pingPath -c 1 -w 3 $host

I note that Salik's script assumes that the host name is the third
argument, so I just altered the script.  You may want to alter the PingCmd
to suit the script you're using, or vice versa.

 deleted content for NmbLookupFindHostCmd (blank)
 added to /etc/ethers a clinet pc's mac and hostname
 what i haven't understood is who will execute wolping.bsh? how backuppc
 knows to execute that specific file?

 Am i missing anythig?
 thanks


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Getting backuppc to wol a client

2011-09-06 Thread Holger Parplies
Hi,

egrimisu wrote on 2011-09-06 01:26:54 -0700 [[BackupPC-users]  Getting backuppc 
to wol a client]:
 Hi guys,
 thanks for posting the small guide,

I suppose this is meant to reference the other thread of the same name from
today. Will users of the braindead forum ever learn to press the correct
reply button? Will they ever learn that you cannot edit email messages? The
forum certainly won't learn.

 unfortunettly it does not work for me,

Unfortunate for *us*.

 777 rights just to be sure

This is just plain stupid. If you are *lucky*, this will simply prevent it from
working. There's no substitute for thinking. If there was, sticking a kick me
sign on your back wouldn't be it.

I would have simply ignored this thread, but I'm not going to leave this sort
of nonsense around uncommented.

 Am i missing anythig?

Yes. An 'n' for starters ...

Regards,
Holger

P.S.: If you ended up here through a web search and are wondering:
  777 is probably *never* a sensible file mode. If *anyone* can think
  of a *single* legitimate usage, please let me know. Thank you.
  If you don't understand permissions, start with symbolic modes (see
  chmod(1)). They're both more powerful and intuitive. Actually, unless
  you are a computer, you shouldn't be using octal modes. If you
  understand what you are doing, your opinion may vary.

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Getting backuppc to wol a client

2011-09-06 Thread Robert E. Wooden
First, I created wolping.sh (notice change from .bsh to .sh) and put it 
into /etc/backuppc. Changed it permissions to allow execution (chmod 750 
[filename].) Changed owner to backuppc:www-data. Found 
NmbLookupFindHostCmd and made it blank.

Then set server pingpath to /etc/backuppc/wolping.sh. Created 
/etc/ethers containing my client mac addresses (because I had manually 
tested etherwake from server and it was working already so why change to 
wakeonlan.)

And it worked for me.

Robert Wooden
Nashville, TN. USA

Computer Freedom? . . . Linux


On 09/06/2011 03:26 AM, egrimisu wrote:
 Hi guys,
 thanks for posting the small guide,

 unfortunettly it does not work for me, the message that i get is 2011-09-06 
 11:06:31 no ping response

 what i did exacly is

 create /etc/backuppc/wolping.bsh with the code in the guide, added owner 
 backuppc and group www-data , 777 rights just to be sure
 set PingPath to /etc/backuppc
 deleted content for NmbLookupFindHostCmd (blank)
 added to /etc/ethers a clinet pc's mac and hostname
 what i haven't understood is who will execute wolping.bsh? how backuppc knows 
 to execute that specific file?

 Am i missing anythig?
 thanks

 +--
 |This was sent by egrim...@yahoo.com via Backup Central.
 |Forward SPAM to ab...@backupcentral.com.
 +--



 --
 Special Offer -- Download ArcSight Logger for FREE!
 Finally, a world-class log management solution at an even better
 price-free! And you'll get a free Love Thy Logs t-shirt when you
 download Logger. Secure your free ArcSight Logger TODAY!
 http://p.sf.net/sfu/arcsisghtdev2dev
 ___
 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/


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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/


[BackupPC-users] OFFTOPIC Re: WINS server (nmbd) puzzle

2011-09-06 Thread Jeffrey J. Kosowsky
Kenneth Porter wrote at about 14:35:08 -0700 on Monday, September 5, 2011:
  My client Windows XP boxes are failing to register with my WINS server
  (running nmbd from Samba). I'm puzzled how to figure out what I'm doing
  wrong.
  
  I'm setting up BackupPC to back up my Windows clients using rsync. I've 
  installed cwRsync to the clients. BackupPC uses nmblookup to find the 
  client's IP address given its Windows NETBIOS name.
  
  I'm distributing the WINS server address via DHCP and see it on the client
  using ipconfig /all. I can run tcpdump on the server (filtering for this
  client and the NETBIOS port) and see the register/response sequence at UDP
  137:
  
  MULTIHOMED REGISTRATION; REQUEST; UNICAST
  REGISTRATION; POSITIVE; RESPONSE; UNICAST
  REGISTRATION; REQUEST; UNICAST
  REGISTRATION; POSITIVE; RESPONSE; UNICAST
  
  If I signal the nmbd process with SIGHUP to make it dump its table to
  nmbd.log, I don't see client in the list. I do see the server and my
  Windows Active Directory server's records in the list, but no clients.
  
  nmblookup finds the client by broadcast (the client responds with the
  record) but nmblookup -U 127.0.0.1 says there's no record of it. (A query
  for the server's own record finds it, so I know the WINS service is at
  least working to that degree.)
  
  So why is nmbd not remembering client records?
  
  One thing I realized is that the Samba server is configured for one 
  workgroup, and the client in question is in a different workgroup. Will 
  nmbd not record records for workstations outside its workgroup?

What does this have to do with BackupPC?
Seems like you have a Windows and/or SAMBA problem - I suggest you
post to the relevant lists.

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Getting backuppc to wol a client

2011-09-06 Thread Michael Stowe
 First, I created wolping.sh (notice change from .bsh to .sh) and put it
 into /etc/backuppc.

I also prefer .sh for shell extensions, but it's only a preference,
there's no inherent meaning to the extension in *nixes, which I'm
mentioning in case anybody misunderstands that this fixed something.

On a vaguely related note, the FHS restricts /etc to static configuration
files, so this properly belongs in the /usr hierarchy, for example, under
/usr/local/bin.  Like extensions, the FHS is just a set of guidelines, and
failure to adhere to it doesn't result in any functional problems, of
course.

 Changed it permissions to allow execution (chmod 750
 [filename].) Changed owner to backuppc:www-data. Found
 NmbLookupFindHostCmd and made it blank.

 Then set server pingpath to /etc/backuppc/wolping.sh. Created
 /etc/ethers containing my client mac addresses (because I had manually
 tested etherwake from server and it was working already so why change to
 wakeonlan.)

For the record, pingpath can appear in local machine settings as well,
though the script doesn't cause any harm to run globally.

My choice of wakeonlan was partly arbitrary, since it happened to be handy
for my distro, but I don't really like the idea of maintaining
/etc/ethers.

 And it worked for me.

 Robert Wooden
 Nashville, TN. USA


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Upgrade BackupPC 2.1.2 to 3.2.1

2011-09-06 Thread Dan Johansson
On Sunday 04 September 2011 19.17:17 Timothy J Massey wrote:
 Dan Johansson dan.johans...@dmj.nu wrote on 09/04/2011 10:04:16 AM:
  As you can see it says that the Pool is 0.00GB. This can not be correct
 
 as
 
  there are data in the pool and I can do a restore. Even after a
  backup does it
  say 0.00GB.
 
 Has BackupPC_nightly run yet?  (It runs at the time each day of the first
 hour listed in the Wakeup variable).  An easier question:  is it past 24
 hours since you completed the upgrade?
 
 The statistics are part of the nightly run, IIRC.

Yes, you are completely right, after the nightly run the statistics are there.
Thanks,
-- 
Dan Johansson, http://www.dmj.nu
***
This message is printed on 100% recycled electrons!
***

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] WINS server (nmbd) puzzle

2011-09-06 Thread Kenneth Porter
--On Monday, September 05, 2011 3:35 PM -0700 Kenneth Porter 
sh...@sewingwitch.com wrote:

 I'm setting up BackupPC to back up my Windows clients using rsync. I've
 installed cwRsync to the clients. BackupPC uses nmblookup to find the
 client's IP address given its Windows NETBIOS name.

 nmblookup finds the client by broadcast (the client responds with the
 record) but nmblookup -U 127.0.0.1 says there's no record of it. (A query
 for the server's own record finds it, so I know the WINS service is at
 least working to that degree.)

Ah, I needed to look at the man page for nmblookup closer. Whenever you use 
-U for WINS queries, you must also use -R to force recursion. (If that's 
the case, why would one ever use -U without -R?)

So if you use WINS with BackupPC, you can use nmblookup -U 
wins-server-address -R as your host lookup function. If BackupPC is 
running on the same host as nmbd, use nmblookup -U 127.0.0.1 -R.


--
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
___
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] Getting backuppc to wol a client

2011-09-06 Thread Robert E. Wooden
You are absolutely correct. I never considered the FHS and by your 
suggestion may, and most likely will, move to correct location in future.

Thank you for your help. Your polite suggestions are appreciated.

Robert Wooden
Nashville, TN. USA

Computer Freedom? . . . Linux


On 09/06/2011 11:24 AM, Michael Stowe wrote:

 On a vaguely related note, the FHS restricts /etc to static configuration
 files, so this properly belongs in the /usr hierarchy, for example, under
 /usr/local/bin.  Like extensions, the FHS is just a set of guidelines, and
 failure to adhere to it doesn't result in any functional problems, of
 course.


--
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
___
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/