WebDAV
Start with dvc remote add to define the remote:
$ dvc remote add -d myremote \
webdavs://example.com/owncloud/remote.php/davIf your remote is located in a subfolder of your WebDAV server e.g.
files/myuser, this path may be appended to the base URL:
$ dvc remote add -d myremote \
webdavs://example.com/owncloud/remote.php/dav/files/myuserConfiguration parameters
If any values given to the parameters below contain sensitive user info, add
them with the --local option, so they're written to a Git-ignored config file.
-
url- remote location:$ dvc remote modify myremote url \ webdavs://example.com/nextcloud/remote.php/dav/files/myuser/ -
token- token for WebDAV server, can be empty in case of usinguser/passwordauthentication.$ dvc remote modify --local myremote token 'mytoken' -
user- user name for WebDAV server, can be empty in case of usingtokenauthentication.$ dvc remote modify --local myremote user myuserThe order in which DVC searches for user name is:
userparameter set with this command (found in.dvc/config);- User defined in the URL (e.g.
webdavs://user@example.com/endpoint/path)
-
custom_auth_header- HTTP header field name to use for authentication. Value is set viapassword.$ dvc remote modify --local myremote \ custom_auth_header 'My-Header' -
password- password for WebDAV server, combined either withuserorcustom_auth_header. Leave empty fortokenauthentication.$ dvc remote modify --local myremote password mypasswordAuth based on
userorcustom_auth_header(withpassword) is incompatible withtokenauth. -
ask_password- ask each time for the password to use foruser/passwordauthentication. This has no effect ifpasswordortokenare set.$ dvc remote modify myremote ask_password true -
ssl_verify- whether or not to verify SSL certificates, or a path to a custom CA bundle to do so (trueby default).$ dvc remote modify myremote ssl_verify false # or $ dvc remote modify myremote ssl_verify path/to/ca_bundle.pem -
cert_path- path to certificate used for WebDAV server authentication, if you need to use local client side certificates.$ dvc remote modify --local myremote cert_path /path/to/cert -
key_path- path to private key to use to access a remote. Only has an effect in combination withcert_path.$ dvc remote modify --local myremote key_path /path/to/keyNote that the certificate in
cert_pathmight already contain the private key. -
timeout- connection timeout (in seconds) for WebDAV server (default: 30).$ dvc remote modify myremote timeout 120