You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following backends are provided by the external storages app.
@@ -141,9 +144,9 @@ The following backends are provided by the external storages app.
141
144
external_storage/webdav
142
145
143
146
.. note:: A non-blocking or correctly configured SELinux setup is needed
144
-
for these backends to work. Please refer to the :ref:`selinux-config-label`.
147
+
for these backends to work. Please refer to :ref:`selinux-config-label`.
145
148
146
-
Allow users to mount external Storage
149
+
Allow Users to Mount External Storage
147
150
-------------------------------------
148
151
149
152
Check **Enable User External Storage** to allow your users to mount their own
@@ -162,14 +165,43 @@ We recommend configuring the background job **Webcron** or
162
165
to enable Nextcloud to automatically detect files added to your external
163
166
storages.
164
167
165
-
Nextcloud may not always be able to find out what has been
166
-
changed remotely (files changed without going through Nextcloud), especially
167
-
when it's very deep in the folder hierarchy of the external storage.
168
+
Nextcloud may not always be able to detect changes made remotely (files changed without going through Nextcloud), especially
169
+
when files are located deep in the folder hierarchy of the external storage.
168
170
169
-
You might need to setup a cron job that runs ``sudo -E -u www-data php occ files:scan --all``
170
-
(or replace ``--all`` with the user name, see also :doc:`../occ_command`)
171
-
to trigger a rescan of the user's files periodically (for example every 15 minutes), which includes
171
+
You might need to set up a cron job that runs ``sudo -E -u www-data php occ files:scan --all``
172
+
(or replace ``--all`` with the username; see also :doc:`../occ_command`)
173
+
to trigger a rescan of the user's files periodically (for example, every 15 minutes), which includes
172
174
the mounted external storage.
173
175
174
176
If you are running Nextcloud AIO, the equivalent command
175
-
in that environment is ``sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan --all``.
177
+
in that environment is ``sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan --all``.
178
+
179
+
.. _trouble-file-encoding-ext-storages:
180
+
181
+
Troubleshooting File Name Encoding
182
+
----------------------------------
183
+
184
+
.. TODO: This should be reviewed by a knowledgeable party at a future date to determine if any changes are relevant with the HFS+ to APFS migration in macOS.
185
+
186
+
When using external storage, it can happen that some files with special characters will not
187
+
appear in the file listing, or they will appear but not be accessible.
188
+
189
+
When this happens, please run the :ref:`files scanner<occ_files_scan_label>`, for example::
190
+
191
+
sudo -E -u www-data php occ files:scan --all
192
+
193
+
If the scanner reports an encoding issue on the affected file, please enable Mac encoding
194
+
compatibility in the :ref:`mount options<external_storage_mount_options_label>`
195
+
and then :ref:`rescan the external storage<occ_files_scan_label>`.
196
+
197
+
.. note::
198
+
This mode comes with a performance impact because Nextcloud will always try both encodings when detecting files
199
+
on external storages.
200
+
201
+
Mac computers use the NFD Unicode normalization for file names, which is different from NFC, the one used
202
+
by other operating systems. Mac users might upload files directly to the external storage using NFD-normalized
203
+
file names. When uploading through Nextcloud, file names will always be normalized to the NFC standard for consistency.
204
+
205
+
It is recommended to let Nextcloud use external storages exclusively to avoid such issues.
206
+
207
+
See also the `technical explanation about NFC vs NFD normalizations <https://www.win.tue.nl/~aeb/linux/uc/nfc_vs_nfd.html>`_.
When using external storage, it can happen that some files with special characters will not
348
-
appear in the file listing, or they will appear and not be accessible.
349
-
350
-
When this happens, please run the :ref:`files scanner<occ_files_scan_label>`, for example with::
351
-
352
-
sudo -E -u www-data php occ files:scan --all
353
-
354
-
If the scanner tells about an encoding issue on the affected file, please enable Mac encoding compatibility in the :ref:`mount options<external_storage_mount_options_label>`
355
-
and then :ref:`rescan the external storage<occ_files_scan_label>`.
356
-
357
-
.. note::
358
-
This mode comes with a performance impact because Nextcloud will always try both encodings when detecting files
359
-
on external storages.
360
-
361
-
Mac computers are using the NFD Unicode Normalization for file names which is different than NFC, the one used
362
-
by other operating systems. Mac users might upload files directly to the external storage using NFD normalized
363
-
file names. When uploading through Nextcloud, file names will always be normalized to the NFC standard for consistency.
364
-
365
-
It is recommended to let Nextcloud use external storages exclusively to avoid such issues.
366
-
367
-
See also `technical explanation about NFC vs NFD normalizations <https://www.win.tue.nl/~aeb/linux/uc/nfc_vs_nfd.html>`_.
0 commit comments