[HELP] webdav command line & nextcloudcmd CLI

Hello,
I used the command line nextcloudcmd for a long time to synchronize my NAS (Openmediavault) and a seedbox on which there is a Nextcloud installation.
After a reinstallation of my NAS, the command line I was using no longer works.

So, I tried a new command line but here my problem to synchronize my NAS with Nextcloud instance via webdav.

If I execute

nextcloudcmd /srv/my/destination/folder https://user:password@my.nexcloud.fr

That works but synchronize ALL my folders!

If I execute

nextcloudcmd /srv/my/destination/folder https://user:password@my.nexcloud.fr/remote.php/dav/files/my/source/folder

I have the following error:

Error! Please specify only the base URL of your host with username and password. Example:
http(s)://username:password@cloud.example.com

Is anyone can help me to find the good command line to synchronize just the folder I want?

On my NAS (OpenMediaVault), I nextcloud-desktop-cmd is installed.

So I answer myself, I find the problem.
It was a syntax error.

For synchronize just ONE folder, you must to indicate his path in the option of the command line.

Example:

If you would like to synchronize the folder /documents1/example from your seedbox (or another webdav online server) to your local NAS in the directory /cloud/documents2, the command line is:

nextcloudcmd --path /documents1/example /cloud/documents2 https://user_ID_seedbox:password@my.seedbox.com/user_ID/nextcloud

1 Like

Doc link for future thread visitors: Command Line Client — Nextcloud latest Administration Manual latest documentation

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.