Commit a67b5030 authored by Aral Balkan's avatar Aral Balkan

Specialised the package for my blog

parent 7338389f
.idea
node_modules node_modules
config.json
npm-debug.log npm-debug.log
# Rsync Watch # Aral’s Blog Syncer
Node.js app to watch files and directories then sync them to the remote server using rsync. Forked from [Rsync Watch](https://github.com/Splurov/rsync-watch). If you want a generic rsync watcher, please use that project.
## Install and use ## Install and use
- Clone repository - Clone repository
- Execute `npm install` - Execute `npm install`
- Copy `config.json.example` to `config.json`
- Edit `config.json`
- 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 sync` to start sync and watch - Execute `npm run sync` to start sync and watch
## Changelog
### 3.0.0
- \[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
### 2.0.1
- Update dependencies to latest versions
### 2.0.0
- rsync configuration moved from code to config.json as `rsyncOptions` property.
{
"live.ar.al": {
"from": "/Users/aral/ar.al/live/",
"to": "ubuntu@live.ar.al:/var/www/live.ar.al/html",
"exclude": [
".DS_Store",
".dat/*"
],
"rsyncOptions": {
"archive": null,
"verbose": null,
"human-readable": null,
"partial": null,
"progress": null
}
}
}
{
"project name": {
"from": "/Users/Username/Code/Project/",
"to": "remote@host:~/Code",
"exclude": [
"**/*.pyc",
"npm-debug.log",
"**/.git",
"**/node_modules"
],
"rsyncOptions": {
"out-format": "%n",
"recursive": null,
"copy-links": null,
"perms": null,
"times": null,
"delete": null,
"delete-during": null
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment