Simple cli tool for synchronizing folder with remote webdav server
npm install webdav-watch -gwebdav-watch watch [folder] -p '!**/.idea/**' -p '!**/.git/**' -r https://webdav-server.com/remote/root/folder -u usernameOn 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.
You can pass configuration file, as -c option.
webdav-watch watch [folder_path] -c path/to/config.jsonwhich has to have next structure:
{
"remote": "https://webdav-server.com/remote/root/folder",
"username": "username",
"folder": "~/project",
"patterns": [
"!**/.idea/**",
"!**/.git/**",
"ANY_VALID_GLOB_HERE"
]
}You can to use uri for your remote config option, that includes valid credentials, for instance, https://user:password@webdav-server.com.
webdav-watch is released under the MIT license.