From d1cd847c0a15e2b088a90b113f273079f10dda81 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 27 Oct 2013 21:42:42 +0100 Subject: [PATCH] sync to various destinations Signed-off-by: Nico Schottelius --- sync-to-42 | 18 ++++++++++++++++++ sync-to-fernseher | 19 +++++++++++++++++++ sync-to-zuhause | 18 ++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100755 sync-to-42 create mode 100755 sync-to-fernseher create mode 100755 sync-to-zuhause diff --git a/sync-to-42 b/sync-to-42 new file mode 100755 index 0000000..1aeb6fc --- /dev/null +++ b/sync-to-42 @@ -0,0 +1,18 @@ +#!/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 new file mode 100755 index 0000000..2aa8e32 --- /dev/null +++ b/sync-to-fernseher @@ -0,0 +1,19 @@ +#!/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-zuhause b/sync-to-zuhause new file mode 100755 index 0000000..95d7d2b --- /dev/null +++ b/sync-to-zuhause @@ -0,0 +1,18 @@ +#!/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