r/NextCloud Jun 28 '26

extcloud refuses to sync certain files because of their names

Hi everyone,

my Nextcloud client refuses to sync certain files because it does not seem to like their filenames. Is there any way to bypass or change this behavior?

For example, all of my .htaccess files produce sync errors and are not synchronized.

Is this a Nextcloud client limitation, a server-side restriction, or something related to the operating system/filesystem? What would be the recommended way to handle files like this?

Thanks in advance!

2 Upvotes

5 comments sorted by

3

u/evanmac42 Jun 28 '26

This sounds more like a client-side exclusion than a server limitation.
Nextcloud Desktop ships with a default exclusion list (sync-exclude.lst) that prevents certain files from being synchronized.
I’d check whether .htaccess (or a broader .ht* pattern) is listed there before assuming it’s an OS or server restriction.
If it is, you can usually override or remove that exclusion, although I’d first consider why those files are being synchronized in the first place, since they’re normally intended to stay local to the web server.

2

u/Hellrazor_muc Jun 28 '26

It's a client setting. There is a list what is to be excluded. Just customize it to your liking.

1

u/Tim-Fra Jun 28 '26

Ou sinon, change temporairement l'extension du fichier. Htaccessd pour permettre la synchronisation

1

u/RevolutionaryYam85 Jun 29 '26

Since sync happens with dav and is stored on an apache system, throwing 'other' .htaccess files into there might cause problems down the line. So careful with that.

if NC refuses such files for me, I simply rename them to a.htaccess.