nice to know aobut filesystem_check_changes option!
Correct me if I’m wrong,; this is useful in case:
samba writes directly into data/ folder or subfolder.
files are changed by ssh
anything that changes data/ content but the sync client or the web interface
Honestly, I’m don’t sully understand what it means by “Check each file or folder at most once per request”.
What request are we speaking about?
I wish to understand how often the check is called.
Does the check call ‘occ file:scan’ for all users?
I wish to know that because, if a server has many files, it will be very heavy duty.
As of now my samba share is connected as external storage.
The “old” owncloud installation I have doesn’t deal well with the external storage.
But I have a new nextcloud test installation and it seems to update the file and folder content of the samba external storage instantly, without any trick.
In the old owncloud installation I used a work around:
I check if files has been changed within 1 minutes by command find.
If so, I run ‘occ file:scan --user myuser’.
file:scan updates also files of external storage (on owncloud).
...Check each file or folder at most once per request, recommended for general use if outside changes might happen.
i would suggest to mount your share into your Nextcloud data instead of using your data as external storage
as soon as having your share mounted to e.g. “nextcloud/data” you will participate of this feature and won’t have to use “file:scan” manually if data were changed outside of Nextcloud (NC client, Windows, SSH, …).
For more details please ask the developers e.g. on github.
Did anyone find a solution to the issue of outside file changes on samba external storage not being picked up by nextcloud?
I ran into this when saving some edited files to my samba share (without using nextcloud) and then wanting to share them immediately using nextcloud. The files did not show up for hours and I was forced to run an occ files:scan. This is not a realistic option since it takes a long time to run. I imagine this is the same for others.
Is there not a way to make nextcloud automatically rescan the external files directory when you navigate to it, so that it knows for sure what files are in the directory? I’d use the filesystem_check_changes option, but the docs clearly state that this does not apply to external storage and @sirio81 notes issues with it on NC 12.
Hi all, I read about an old owncloud solution to do rescan all cron job.
Based on it I create a script that will do the job for me. But it takes ages (more than 3 hours for me) to run command “files:scan --all” over all local and remote files… So I modify it today to get all external mounting points and sync only over them. It takes now much less time to do the job and also CPU load now much lower.
I test it only with Dropbox and Google drive. Please check if it works in the same way for samba, etc.Update: checked, it works with all External Shares.
Script must be executed under your nextcloud user, e.g. “www-data”.