webdav-watch
Simple cli tool for synchronizing folder with remote webdav server
Installation
npm install webdav-watch -g
Usage
webdav-watch watch [folder_path] -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.
Configuration
You can pass configuration file, as -c
option.
webdav-watch watch [folder_path] -c path/to/config.json
which has to have next structure:
{
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.