add script to wake up local pcs

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-12-10 22:58:31 +01:00
parent 63e5943386
commit 68572a49ba
6 changed files with 15 additions and 76 deletions

View file

@ -1,18 +0,0 @@
#!/bin/sh
~nico/bin/backup-marker
start=$(date)
rsync -av --delete --progress \
--exclude '/proc/*' \
--exclude '/tmp/*' \
--exclude '/sys/*' \
--exclude '/dev/*' \
--exclude '/home/users/nico/.bitcoin/blocks/' \
--exclude '/home/users/nico/.bitcoin/chainstate/' \
"$@" \
/ 42:/home/services/backup/bento
end=$(date)
echo $start
echo $end

View file

@ -1,19 +0,0 @@
#!/bin/sh
~nico/bin/backup-marker
start=$(date)
rsync -av --delete --progress \
--exclude '/proc/*' \
--exclude '/tmp/*' \
--exclude '/sys/*' \
--exclude '/dev/*' \
--exclude '/home/users/nico/.bitcoin/blocks/' \
--exclude '/home/users/nico/.bitcoin/chainstate/' \
"$@" \
/ root@192.168.25.45:/mnt
end=$(date)
echo $start
echo $end

View file

@ -1,21 +0,0 @@
#!/bin/sh
start=$(date)
~nico/bin/backup-marker
rsync -av --delete --progress \
--exclude '/proc/*' \
--exclude '/tmp/*' \
--exclude '/sys/*' \
--exclude '/dev/*' \
--exclude '/home/users/nico/.bitcoin/blocks/' \
--exclude '/home/services/usbhd' \
"$@" \
/ root@loch:/home/services/backup/bento-manuell
#/ root@zuhause.schottelius.org:/home/services/backup/bento-manuell
#/ root@zuhause.schottelius.org:/home/services/backup/bento-manuell
end=$(date)
echo $start
echo $end

View file

@ -1,18 +0,0 @@
#!/bin/sh
~nico/bin/backup-marker
start=$(date)
rsync -av --delete --progress \
--exclude '/proc/*' \
--exclude '/tmp/*' \
--exclude '/sys/*' \
--exclude '/dev/*' \
--exclude '/home/users/nico/.bitcoin/blocks/' \
--exclude '/home/users/nico/.bitcoin/chainstate/' \
"$@" \
/ root@zuhause.schottelius.org:/home/services/backup/bento-manuell
end=$(date)
echo $start
echo $end

15
wake-up Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
host=$1; shift
case "$host" in
blank)
mac=60:a4:4c:cf:f0:25
;;
*)
echo "Unknown host $host" >&2
exit 1
;;
esac
wol "$mac"