# Sync files with public link share on nextcloud

**URL:** <https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427>\
**Category:** Howto Guides\
**Created:** [June 29, 2023, 11:42am UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427 "2023-06-29T11:42:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![azerdumb](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@azerdumb](https://forum.rclone.org/u/azerdumb)\
**Post date:** [June 29, 2023, 11:42am UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/1 "2023-06-29T11:42:52Z")

</div>

I may be dumb but I searched a lot for this functionality. Somehow, a lot of strange answer came from search engines (even tried chatGPT that bullshited me as usual)...  
You must actually understand a bit of webdav usage in nextcloud to come up with a working solution. So I think it is worth sharing 🙂

I got a public directory link share like this one:  
`https://dummycloud.net/s/azer9si8TG02`

And I want my local directory "localdir" to be in sync with it.  
All I have to do is:  
`rclone sync --webdav-url=https://dummycloud.net/public.php/webdav/ --webdav-user=azer9si8TG02 --webdav-vendor=nextcloud :webdav: .`

You can add the parameter `-webdav-pass="$(rclone obscure '12345')"` if your share is protected by the password `12345`.  
You don’t have to do `rclone conf` for this example to work.

---

<div class="post-metadata">

**Author:** ![azerdumb](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@azerdumb](https://forum.rclone.org/u/azerdumb)\
**Post date:** [June 29, 2023, 11:44am UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/2 "2023-06-29T11:44:53Z")

</div>

Reference:  
[https://docs.nextcloud.com/server/stable/user\_manual/en/files/access\_webdav.html#accessing-public-shares-over-webdav](https://docs.nextcloud.com/server/stable/user_manual/en/files/access_webdav.html#accessing-public-shares-over-webdav)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 29, 2023, 1:23pm UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/3 "2023-06-29T13:23:05Z")

</div>

If you would like you could propose a patch to the docs

There is an owncloud and nextcloud section - maybe in there?

> <https://github.com/rclone/rclone/blob/master/docs/content/webdav.md#nextcloud>

---

<div class="post-metadata">

**Author:** ![MarcelRueedi](https://forum.rclone.org/user_avatar/forum.rclone.org/marcelrueedi/32/16012_2.png) [@MarcelRueedi](https://forum.rclone.org/u/MarcelRueedi)\
**Post date:** [August 15, 2023, 3:18pm UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/4 "2023-08-15T15:18:34Z")

</div>

I'm always getting "Failed to create file system for ":webdav:": the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav. Please check 'rclone config show remotename' to verify that the url field ends in /dav/files/USERNAME"

What am I missing ?

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [August 15, 2023, 3:31pm UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/5 "2023-08-15T15:31:11Z")

</div>

Nobody can guess what you are missing. Create new thread in ‘Help and support’ and post all data you will be asked for.

---

<div class="post-metadata">

**Author:** ![MarcelRueedi](https://forum.rclone.org/user_avatar/forum.rclone.org/marcelrueedi/32/16012_2.png) [@MarcelRueedi](https://forum.rclone.org/u/MarcelRueedi)\
**Post date:** [August 17, 2023, 4:57pm UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/6 "2023-08-17T16:57:48Z")

</div>

Here's what I was missing - It work with version 1.62.2.  
It does not work with Version 1.63.0 and 1.63.1 anymore.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [August 17, 2023, 4:59pm UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/7 "2023-08-17T16:59:43Z")

</div>

Are you able to compile rclone from source? Then we could bisect all commits between 1.62.2 and 1.63.0 and pinpoint one which introduced this issue.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [August 17, 2023, 5:01pm UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/8 "2023-08-17T17:01:23Z")

</div>

> [@MarcelRueedi](#):
>
> It does not work with Version 1.63.0 and 1.63.1 anymore.

Posting in multiple spots..

See -\> [Nextcloud: broke webdav connect in new version (due to added support for chunked uploads?) · Issue #7199 · rclone/rclone · GitHub](https://github.com/rclone/rclone/issues/7199)

Fixed in the latest beta.

---

<div class="post-metadata">

**Author:** ![dirks](https://forum.rclone.org/user_avatar/forum.rclone.org/dirks/32/18950_2.png) [@dirks](https://forum.rclone.org/u/dirks)\
**Post date:** [December 5, 2024, 10:40am UTC](https://forum.rclone.org/t/sync-files-with-public-link-share-on-nextcloud/39427/9 "2024-12-05T10:40:52Z")

</div>

To update this, you can not use `--webdav-vendor=nextcloud` anymore (rclone 1.68.2), but have to use `--webdav-vendor=other`.

With nextcloud as vendor rclone checks if the url contains the `/dav/files/USER` path, which is not used by nextcloud for public shares (Reference to nextcloud docs posted above still valid).

The error message with nextcloud configured as vendor makes me believe that no chunked uploads will be available if the workaround with vendor other is used, but I did not look further:

```auto
CRITICAL: Failed to create file system for ":webdav:": the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav. Please check 'rclone config show remotename' to verify that the url field ends in /dav/files/USERNAME

```
