#!/bin/bash

src_dir='/opt/apps/syncthing/data/common'
dst_dir='/opt/apps/localcr/K_nextcloud/local/nextcloud/data/nextcloud/files/'
rsync --delete-after -avz $src_dir $dst_dir

docker exec -u www-data nextcloud php /var/www/html/occ files:scan --all


