Commit 68572a49 authored by Nico Schottelius's avatar Nico Schottelius

add script to wake up local pcs

Signed-off-by: default avatarNico Schottelius <nico@bento.schottelius.org>
parent 63e59433
#!/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
#!/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
#!/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
#!/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
#!/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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment