From 2e56a880cba7f0088acec41a645541e446bf8ecd Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 21 May 2014 18:44:25 +0200 Subject: [PATCH] Fix typos --- osync.sh | 6 +----- sync.conf | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/osync.sh b/osync.sh index 90420a6..6b5e658 100755 --- a/osync.sh +++ b/osync.sh @@ -1544,17 +1544,13 @@ function Init fi if [ "$PRESERVE_HARDLINKS" == "yes" ] then - RSYNC_ARGS$RSYNC_ARGS"H" + RSYNC_ARGS=$RSYNC_ARGS"H" fi if [ $dryrun -eq 1 ] then RSYNC_ARGS=$RSYNC_ARGS"n" DRY_WARNING="/!\ DRY RUN" fi - if [ "$RSYNC_ARGS" == "-" ] - then - RSYNC_ARGS="" - fi if [ "$BANDWIDTH" != "" ] && [ "$BANDWIDTH" != "0" ] then diff --git a/sync.conf b/sync.conf index 8e0fa6d..6c95574 100755 --- a/sync.conf +++ b/sync.conf @@ -11,8 +11,8 @@ SYNC_ID="sync_test" ## Directories to synchronize. Master must be on the system Osync runs on. Slave can be either a local directory, or a remote one. MASTER_SYNC_DIR="/home/git/osync/test/dir1" -#SLAVE_SYNC_DIR="/home/git/osync/test/dir2" -SLAVE_SYNC_DIR="ssh://user@host.com:22//path/to/dir2" +SLAVE_SYNC_DIR="/home/git/osync/test/dir2" +#SLAVE_SYNC_DIR="ssh://user@host.com:22//path/to/dir2" ## If slave replica is a remote directory, you must specifiy a RSA key (please use full path). Please see documentation for further information. SSH_RSA_PRIVATE_KEY="/home/backupuser/.ssh/id_rsa" @@ -65,7 +65,7 @@ PRESERVE_ACL=no ## Preserve Xattr. Make sure source and target FS can manage same Xattrs or you'll get loads of errors. PRESERVE_XATTR=no ## Preserve hard links. Make sure source and target FS can manage hard links or you will lose them. -PRESERVE_HARDLINKS=yes +PRESERVE_HARDLINKS=no ## Let RSYNC compress file transfers. Do not use this if both master and slave replicas are on local system. Also, do not use this if you already enabled SSH compression. RSYNC_COMPRESS=yes