Node.js app to watch files and directories then sync them to the remote server using rsync.
- Clone repository
- Execute
npm install - Copy
config.js.exampletoconfig.js - Edit
config.js- Exclude pattern must be compatible with https://man.developpez.com/man1/rsync/#L16 and https://github.com/micromatch/micromatch#matching-features at the same time
- Execute
npm run syncto start sync and watch
- Add an option to show desktop notification on error and on sync end. Credits to @neroze
- Update dependencies due to kind-of security warnings
- Update dependencies due to security warnings
- Configuration file moved from config.json to config.js
- Stop script execution on initial sync error
- [Breaking] Exclude config also applied to watcher (before only for rsync). Pattern must be compatible with https://man.developpez.com/man1/rsync/#L16 and https://github.com/micromatch/micromatch#matching-features at the same time
- Update dependencies to latest versions
- rsync configuration moved from code to config.json as
rsyncOptionsproperty.