From 72da1882d408a345ac801a3827fc2e6c6744fe31 Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 8 Feb 2017 13:35:53 +0100 Subject: [PATCH] Added _REMOTE_TOKEN entry --- sync.conf.example | 5 ++++- upgrade-v1.0x-v1.2x.sh | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sync.conf.example b/sync.conf.example index e491d5a..c529be1 100644 --- a/sync.conf.example +++ b/sync.conf.example @@ -2,7 +2,7 @@ ###### osync - Rsync based two way sync engine with fault tolerance ###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr) -###### osync v1.1x / v1.2x config file rev 2017020501 +###### osync v1.1x / v1.2x config file rev 2017020801 ## ---------- GENERAL OPTIONS @@ -23,6 +23,9 @@ SSH_RSA_PRIVATE_KEY="/home/backupuser/.ssh/id_rsa" ## Alternatively, you may specify an SSH password file (less secure). Needs sshpass utility installed. SSH_PASSWORD_FILE="" +## When using ssh filter, you must specify a remote token matching the one setup in authorized_keys +_REMOTE_TOKEN=SomeAlphaNumericToken9 + ## Create sync directories if they do not exist CREATE_DIRS=no diff --git a/upgrade-v1.0x-v1.2x.sh b/upgrade-v1.0x-v1.2x.sh index 578251e..b2c6ef5 100755 --- a/upgrade-v1.0x-v1.2x.sh +++ b/upgrade-v1.0x-v1.2x.sh @@ -6,7 +6,7 @@ AUTHOR="(C) 2016-2017 by Orsiris de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" OLD_PROGRAM_VERSION="v1.0x-v1.1x" NEW_PROGRAM_VERSION="v1.2x" -CONFIG_FILE_VERSION=2017020501 +CONFIG_FILE_VERSION=2017020801 PROGRAM_BUILD=2016121101 ## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode @@ -25,6 +25,7 @@ INITIATOR_SYNC_DIR TARGET_SYNC_DIR SSH_RSA_PRIVATE_KEY SSH_PASSWORD_FILE +_REMOTE_TOKEN CREATE_DIRS LOGFILE MINIMUM_SPACE @@ -95,6 +96,7 @@ sync-test '' ${HOME}/backupuser/.ssh/id_rsa '' +SomeAlphaNumericToken9 no '' 10240