diff --git a/syncloop.sh b/syncloop.sh index 41b9d6f..b6cdc37 100755 --- a/syncloop.sh +++ b/syncloop.sh @@ -119,7 +119,7 @@ synccycle & # exclude swp,swpx and 4913 files created by vim inotifywait -m -r -e create -e close_write -e move -e delete --exclude "\.swp|\.swx|4913|.txt~" $LOCALPATH | while read dir action file; do - if [ $action = 'DELETE' ] || [ $action = 'DELETE,ISDIR' ]; then + if [ $action = 'DELETE' ] || [ $action = 'DELETE,ISDIR' ] || [ $action = 'MOVED_FROM' ]; then echo "Enqueue delete: $dir$file" flock $lock_deletes echo $dir$file | sed -e "s~$LOCALPATH~$REMOTERELATIVEPATH~g" | tee -a ${TMPQUEUEDELETES}