add script to wake up local pcs
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
63e5943386
commit
68572a49ba
6 changed files with 15 additions and 76 deletions
18
sync-to-42
18
sync-to-42
|
@ -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
|
|
@ -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
|
21
sync-to-loch
21
sync-to-loch
|
@ -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
|
|
@ -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
15
wake-up
Executable 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"
|
Loading…
Reference in a new issue