I use VSC as an editor on Windows 10 Pro and want to sync to a remote server on file change.
I installed WSL with a debian guest system
If I run this script
while inotifywait -r -e modify,create,delete /path/to/folder; do rsync -rltzv --progress --chmod=0600 --exclude=.git/ --exclude=.vscode /path/to/folder email@example.com:~/remote/folder; done;
The rsync is started not only, when I save a file in VSC, but also, when I open it. While this is not critical, it is annoying and a wast of bandwidth.
Can I do anything against it?
I don't know, what coused this, but the problem doesn't seem to happen any more on my machine with my setting. But I didn't change anything