Well, until I read the Volunteering and get it done properly, this is what worked for me... And, before I start, I know you knew you were right, but confirming, backuppc has no login... As I said, not a noob, but not an expert
Some information came from several sources including Michael Stowe and the SME:Contribs, others just had to be worked out.
_________________________________________________________________________________________________________
#!/bin/bash
# this is the wake-ping script
# “HOST” is the supplied parameter
HOST=$1
# Set the mac address for each host
MAC1=34:64:a9:aa:bb:11 # laptop1
MAC2=34:64:a9:aa:bb:22 # laptop2
MAC3=50:e5:49:cc:dd:11 # desktop1
MAC4=50:e5:49:cc:dd:22 # desktop2
MAC5=50:e5:49:cc:dd:33 # desktop3
# Set the variables for each IP
PC1=laptop1
PC2=laptop2
PC3=desktop1
PC4=desktop2
PC5=desktop3
# How long does the host take to wake up
TIME=20
# interface to send the WoL packets from
INTERFACE=eth0
# was for testing - echo $HOST $INTERFACE
# - /bin/sleep 2
case $1 in
$PC1)
/usr/bin/sudo /sbin/ether-wake -i $INTERFACE $MAC1
/bin/sleep $TIME
;;
$PC2)
/usr/bin/sudo /sbin/ether-wake -i $INTERFACE $MAC2
/bin/sleep $TIME
;;
$PC3)
/usr/bin/sudo /sbin/ether-wake -i $INTERFACE $MAC3
/bin/sleep $TIME
;;
$PC4)
/usr/bin/sudo /sbin/ether-wake -i $INTERFACE $MAC4
/bin/sleep $TIME
;;
$PC5)
/usr/bin/sudo /sbin/ether-wake -i $INTERFACE $MAC5
/bin/sleep $TIME
;;
*)
echo "Unknown machine $HOST"
exit 1
;;
esac
# Function to check if the host pings
/bin/ping -w 5 -c 2 $HOST
export PINGSTATUS=$?
echo $PINGSTATUS
____________________________________________________________________________________________________
From the Main Configuration Editor->Backup Settings:
Client Lookup
ClientNameAlias <BLANK>
NmbLookupCmd $nmbLookupPath -A $host
NmbLookupFindHostCmd $nmbLookupPath -B 192.168.1.255 $host
FixedIPNetBiosNameCheck <BLANK>
PingCmd /etc/BackupPC/wake-ping.sh $host
PingMaxMsec 20
Assumes a local LAN of 192.168.1.x
_______________________________________________________________________________________________________________________
Used cygwin-rsyncd-2.6.8_0.zip – configs required are:
Detail from rsyncd.conf - the heading in the square brackets becomes the rsync share.
[cdocs]
path = c:/User
comment = c: Drive documents
auth users = validbackupuser
secrets file = c:/rsyncd/rsyncd.secrets
hosts allow = 192.168.1.1
strict modes = false
read only = true
list = false
Detail from rsyncd.secrets has a valid local Userid:Password (for the Windows box being backed up) – in this instance the UserID would be validbackupuser
Command to install as rsync as a daemon and start:
cygrunsrv.exe -I rsyncd -e CYGWIN=nontsec -p c:/rsyncd/rsync.exe -a "--config=c:/rsyncd/rsyncd.conf --daemon --no-detach"
cygrunsrv.exe --start rsyncd
NB – different rsync version, different settings!
EG:
[cdocs]
Path = /cygdrive/c/Users/<USERNAME>
comment = c: User Date
strict modes = false
auth users = validbackupuser
secrets file = c:/rsyncd/rsyncd.secrets
hosts allow = 192.168.1.1
read only = false
list = false
____________________________________________________________________________________________________________________
All other settings are “fairly simple” by comparison.