From 68572a49bafe4286c3cd1c6084ca434d534e11ed Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 10 Dec 2013 22:58:31 +0100 Subject: [PATCH] add script to wake up local pcs Signed-off-by: Nico Schottelius --- sync-from-loch => sync-from | 0 sync-to-42 | 18 ------------------ sync-to-fernseher | 19 ------------------- sync-to-loch | 21 --------------------- sync-to-zuhause | 18 ------------------ wake-up | 15 +++++++++++++++ 6 files changed, 15 insertions(+), 76 deletions(-) rename sync-from-loch => sync-from (100%) delete mode 100755 sync-to-42 delete mode 100755 sync-to-fernseher delete mode 100755 sync-to-loch delete mode 100755 sync-to-zuhause create mode 100755 wake-up diff --git a/sync-from-loch b/sync-from similarity index 100% rename from sync-from-loch rename to sync-from diff --git a/sync-to-42 b/sync-to-42 deleted file mode 100755 index 1aeb6fc..0000000 --- a/sync-to-42 +++ /dev/null @@ -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 diff --git a/sync-to-fernseher b/sync-to-fernseher deleted file mode 100755 index 2aa8e32..0000000 --- a/sync-to-fernseher +++ /dev/null @@ -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 diff --git a/sync-to-loch b/sync-to-loch deleted file mode 100755 index 2ccb4dc..0000000 --- a/sync-to-loch +++ /dev/null @@ -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 diff --git a/sync-to-zuhause b/sync-to-zuhause deleted file mode 100755 index 95d7d2b..0000000 --- a/sync-to-zuhause +++ /dev/null @@ -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 diff --git a/wake-up b/wake-up new file mode 100755 index 0000000..32c55d9 --- /dev/null +++ b/wake-up @@ -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"