Re: [BackupPC-users] cannot get backuppc to wol a client
On Sat, 2011-09-03 at 22:33 +0100, Tim Fletcher wrote: > And change the pingcmd for the hosts to the following line: I should also say that this relies on the fact the backuppc once a host has "settled" only pings a host just before trying to back it up. Also I should have mentioned that you need to crank up the pingtimeout setting on backuppc if you are using this wake up method. -- Tim Fletcher -- 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] cannot get backuppc to wol a client
On Sat, 2011-09-03 at 17:14 -0500, Robert E. Wooden wrote: > Tim, what OS is your BackupPC running on? Ubuntu 11.04 32bit -- Tim Fletcher -- 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] cannot get backuppc to wol a client
Tim, what OS is your BackupPC running on? Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/03/2011 04:33 PM, Tim Fletcher wrote: On Sat, 2011-09-03 at 16:09 -0500, Robert E. Wooden wrote: I have worked on this issue in the past for myself. Never really got it completed. However, your email has me interested again and this is good weekend to work on this. I've had it working for a year or so with the following setup: In the file /etc/sudoers add the following lines: Cmnd_Alias WOL = /usr/bin/wakeonlan,/usr/sbin/etherwake backuppc ALL=(root) NOPASSWD:WOL And change the pingcmd for the hosts to the following line: $Conf{PingCmd} = '/usr/local/bin/wakeup.sh $host'; I've also attached a slightly edited version of the script I use to fire off the WoL packets. -- 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/
Re: [BackupPC-users] cannot get backuppc to wol a client
Well, your development on this is way over my head but, I sure do like your wakeup script. In my case, I worked on this last January or so and forgot where I left off. I am embarrassed to say that I cannot find my notes from then and so I do not know want other related commands (within BackupPC) that I may have changed. I am sitting here scratching my head, deciding how to proceed. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/03/2011 04:33 PM, Tim Fletcher wrote: On Sat, 2011-09-03 at 16:09 -0500, Robert E. Wooden wrote: I have worked on this issue in the past for myself. Never really got it completed. However, your email has me interested again and this is good weekend to work on this. I've had it working for a year or so with the following setup: In the file /etc/sudoers add the following lines: Cmnd_Alias WOL = /usr/bin/wakeonlan,/usr/sbin/etherwake backuppc ALL=(root) NOPASSWD:WOL And change the pingcmd for the hosts to the following line: $Conf{PingCmd} = '/usr/local/bin/wakeup.sh $host'; I've also attached a slightly edited version of the script I use to fire off the WoL packets. -- 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/
Re: [BackupPC-users] cannot get backuppc to wol a client
On Sat, 2011-09-03 at 16:09 -0500, Robert E. Wooden wrote: > I have worked on this issue in the past for myself. Never really got it > completed. However, your email has me interested again and this is good > weekend to work on this. I've had it working for a year or so with the following setup: In the file /etc/sudoers add the following lines: Cmnd_Alias WOL = /usr/bin/wakeonlan,/usr/sbin/etherwake backuppc ALL=(root) NOPASSWD:WOL And change the pingcmd for the hosts to the following line: $Conf{PingCmd} = '/usr/local/bin/wakeup.sh $host'; I've also attached a slightly edited version of the script I use to fire off the WoL packets. -- Tim Fletcher wakeup.sh Description: application/shellscript -- 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] cannot get backuppc to wol a client
I have worked on this issue in the past for myself. Never really got it completed. However, your email has me interested again and this is good weekend to work on this. So, last night I Googled "BackupPC wol" got some more info. This is the article that started me off last January: > http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/backuppc-21/wol-how-it-works-for-me-74879/ This writing was initially a little robust for my needs, however he brings up some very good ideas. This article is from Ubunut-fr (France) and needed to be translated by Google: > http://doc.ubuntu-fr.org/backuppc It relates to Windows pc's, should that be what you need. I, personally, am trying to wake and backup Ubuntu machines. I cannot say if it works with other distros, but I don't see why it would not. My next step is to move my wake-on-lan scripts over to my BackupPC machine (the scripts are working on my desktop to wake my test machine.) I'll continue now my testing and keep you posted as I go. Robert Wooden Nashville, TN. USA Computer Freedom? . . . Linux On 09/02/2011 01:18 PM, Tim Fletcher wrote: > On Fri, 2011-09-02 at 00:34 -0700, egrimisu wrote: >> Hi guys, >> >> backuppc won't wol client pc >> >> NmbLookupFindHostCmd = /etc/backuppc/wakeup.sh 00:1a:4d:8c:0a:78 1 $host >> >> wakeup.sh has 777 rights and contains: >> >> >> #!/bin/bash >> wakeonlan $1 >> sleep ${2}m >> /usr/bin/nmblookup $3 >> >> using the dos command wolcmd.exe 001a4d8c0a78 192.168.2.74 255.255.255.0 >> wakes the pc up. > Sending the WoL packets need root (admin in the windows world) > privileges so you will need to make setup sudo to allow the backuppc > user to run wakeonlan as root or you need to setuid the wakeonlan > binary. (bad idea) > -- 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] cannot get backuppc to wol a client
On Fri, 2011-09-02 at 00:34 -0700, egrimisu wrote: > Hi guys, > > backuppc won't wol client pc > > NmbLookupFindHostCmd = /etc/backuppc/wakeup.sh 00:1a:4d:8c:0a:78 1 $host > > wakeup.sh has 777 rights and contains: > > > #!/bin/bash > wakeonlan $1 > sleep ${2}m > /usr/bin/nmblookup $3 > > using the dos command wolcmd.exe 001a4d8c0a78 192.168.2.74 255.255.255.0 > wakes the pc up. Sending the WoL packets need root (admin in the windows world) privileges so you will need to make setup sudo to allow the backuppc user to run wakeonlan as root or you need to setuid the wakeonlan binary. (bad idea) -- Tim Fletcher -- 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] cannot get backuppc to wol a client
On Mon, 2011-01-10 at 17:04 -0600, Bob Wooden wrote: > This wakeup.sh has been placed in /etc/backuppc. The permissions are > set to 640 (to match the other files in that directory0 with ownership > set as backuppc:www-data. Set permissions to 755 or 750. You don't have the execute bit set. Tyler -- "If we don't believe in free expression for people we despise, we don't believe in it at all." -- Noam Chomsky -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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/