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 --- sync_backup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 sync_backup.sh (limited to 'sync_backup.sh') 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