Enabled fastcheck and logs to /tmp/mys-<username>..
This commit is contained in:
parent
71b47482b1
commit
1cb81284c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue