it would be great for nextcloud/owncloud
sudo -u www-data php occ files:scan --path="/dir/modified/sent/from/rclone"
so, when some sync move or copy is made, rclone will execute this line
sudo -u www-data php occ files:scan --path=“arg”
and this arg will be directory which content has been changed after sync/copy/move/creation had complete.
Because nextcloud owncloud does not directly operate through files on disk, it creates mysql database of all files on mounted share, something like cache in rclone.
And to update this database there is occ script
https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/occ_command.html
and this script occ scans all files and writes it to mysql.
So when i have 5TB on mounted drive,
inside this 5TB i have plenty of folders, and some of this folders are changed through external application (not throug nextcloud)
and later i do rclone sync,
nextcloud could be able to update only what was changed and not rescan whole 5TB again.
If i would update it through web interface of nextcloud, nextcloud would automatically update database, but such brwosing through nextcloud is slow and inconvenient.
If i do it through another webdav/ftp to temporary vps drive and later run rclone sync it is much better.
But have to update nextcloud database for it to be seen in nextcloud web interface.
Hope you clearly understand it.
thanks.
or maybe @ncw, does rclone detect changes in remote ?
If yes it could automatically run command after change happened.
Does rclone monitor changed files automatically?
something like this --on-change mentioned here:
is rclone able to monitor changes through vfs/cache .db ?