[add] rsync syncthing files to nextcloud

This commit is contained in:
gitea 2023-09-08 16:52:33 +08:00
parent 90aea333fd
commit 59cb3622f4

9
update/nc_rsync.sh Normal file
View File

@ -0,0 +1,9 @@
#!/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