Good day, I would like to set up the following scheme: push a file to a GitLab repository, and then have it sent from there so that a copy of the file is stored in the required Nextcloud folder. Is it possible to do this using WebDAV or SSH?
You can use external linux programs for WebDAV and/or SSH/scp/rsync communications.
But after copy you must execute the following command that Nextcloud knows the files in the Nextcloud database. Maybe you can use cron
for it.
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
or
sudo -u www-data php /path/to/nextcloud/occ files:scan username
or maybe
sudo -u www-data php occ files:scan --path=/user/files/my_groupfolder_path
if you use davfs with the nextcloud-user there is no need to run occ files… afterwards.
1 Like
Yes. Nextcloud knows and uses WebDAV. The occ-command is not needed.