From f7bc29989b3850b1deffd9204dacd1bc0cb51eb2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 25 Dec 2017 12:49:23 +0100 Subject: added a backup sync script --- README | 1 + sync_backup.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 sync_backup.sh diff --git a/README b/README index 3560ebe..4db6de6 100644 --- a/README +++ b/README @@ -2,3 +2,4 @@ action back in 2009) - new_theme is based on https://github.com/Vimux/Mainroad.git - overlay in query: https://github.com/gasparesganga/jquery-loading-overlay/releases/tag/v1.5.3 +- http://saimiri.io/2016/06/comments-in-hugo/ for comments diff --git a/sync_backup.sh b/sync_backup.sh new file mode 100755 index 0000000..c84494f --- /dev/null +++ b/sync_backup.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +rsync -e 'ssh -p 2223' -av \ + --usermap=abaumann:http \ + --groupmap=abaumann:http \ + --delete-after \ + --exclude '*~' \ + public/. root@andreasbaumann.cc:/srv/http/www.andreasbaumann.cc/. -- cgit v1.2.3-54-g00ecf