Skip to content

🐙Simple cli tool for synchronizing folder with remote webdav server

License

Notifications You must be signed in to change notification settings

zemd/webdav-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webdav-watch

Simple cli tool for synchronizing folder with remote webdav server

npm version Code Climate dependencies:? devDependencies:?

Installation

npm install webdav-watch -g

Usage

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.

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.

Donate

About

🐙Simple cli tool for synchronizing folder with remote webdav server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published