https://github.com/zemd/webdav-watch
🐙Simple cli tool for synchronizing folder with remote webdav server
https://github.com/zemd/webdav-watch
cli webdav webdav-watch
Last synced: 12 days ago
JSON representation
🐙Simple cli tool for synchronizing folder with remote webdav server
- Host: GitHub
- URL: https://github.com/zemd/webdav-watch
- Owner: zemd
- License: mit
- Created: 2018-02-16T11:48:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T00:08:47.000Z (about 5 years ago)
- Last Synced: 2025-10-17T05:14:19.606Z (8 months ago)
- Topics: cli, webdav, webdav-watch
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webdav-watch
> Simple cli tool for synchronizing folder with remote webdav server
[](https://www.npmjs.com/package/webdav-watch)
[](https://codeclimate.com/github/zemd/webdav-watch)
[](https://david-dm.org/zemd/webdav-watch)
[](https://david-dm.org/zemd/webdav-watch)
## Installation
```bash
npm install webdav-watch -g
```
## Usage
```bash
webdav-watch watch [folder] -p '!**/.idea/**' -p '!**/.git/**' -r https://webdav-server.com/remote/root/folder -u username
```
On first call you will be requested for entering password, which will be stored in your system's keychain.
If neither `folder` or `patters`(`-p`) have been provided, current working dir is being used. `folder` can be useful when
you need to watch directory other than `cwd` and is used by `webdav-watch` to build correct remote path for uploading file.
### Configuration
You can pass configuration file, as `-c` option.
```bash
webdav-watch watch [folder_path] -c path/to/config.json
```
which has to have next structure:
```json
{
"remote": "https://webdav-server.com/remote/root/folder",
"username": "username",
"folder": "~/project",
"patterns": [
"!**/.idea/**",
"!**/.git/**",
"ANY_VALID_GLOB_HERE"
]
}
```
### Advanced configuration
You can to use `uri` for your remote config option, that includes valid credentials, for instance, `https://user:password@webdav-server.com`.
## License
webdav-watch is released under the MIT license.
## Donate
[](https://www.patreon.com/red_rabbit)
[](https://flattr.com/profile/red_rabbit)