From 1cb81284c97abdeabc092deaaff30992a3c7e0ee Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Wed, 30 Apr 2025 06:30:54 -0400 Subject: [PATCH] Enabled fastcheck and logs to /tmp/mys-.. --- wmde-rp-usersync-ssh.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wmde-rp-usersync-ssh.sh b/wmde-rp-usersync-ssh.sh index efea7db..69334bf 100755 --- a/wmde-rp-usersync-ssh.sh +++ b/wmde-rp-usersync-ssh.sh @@ -7,7 +7,7 @@ USER=`whoami` PAM_USER=$USER PAM_TYPE=open_session -#exec >> /tmp/mys-$USER.txt 2>&1 +exec >> /tmp/mys-$USER.txt 2>&1 set -x . $PREFIX/wmde-rp-check-pam-user.sh @@ -85,8 +85,7 @@ fi IGNORES="-ignore 'Path .wmdesync'" -OTHERARGS="-auto -log -prefer newer -maxerrors 500000" -#-fastcheck" +OTHERARGS="-auto -log -prefer newer -maxerrors 500000 -fastcheck" export UNISONLOCALHOSTNAME=`hostname` export UNISON=$HOMEDIR/.wmdesync/unison-$UNISONLOCALHOSTNAME @@ -175,12 +174,12 @@ echo "$$" > $CONFIGSYNC echo "$$" > $SMALLFILESSYNC # Sync all -unison full -times -sshargs "$SSHARGS" -servercmd "$SERVERCMD" $OTHERARGS -batch -ignore 'Path .wmdesync' +yes | unison full -times -sshargs "$SSHARGS" -servercmd "$SERVERCMD" $OTHERARGS -batch -ignore 'Path .wmdesync' echo "$$" > $FULLSYNC echo "$$" > $FIRSTSYNC # Sync all & repeat -unison full -times -sshargs "$SSHARGS" -servercmd "$SERVERCMD" $OTHERARGS -batch -ignore 'Path .wmdesync' -repeat watch+60 full +yes | unison full -times -sshargs "$SSHARGS" -servercmd "$SERVERCMD" $OTHERARGS -batch -ignore 'Path .wmdesync' -repeat watch+60 exit 0