From 59cb3622f4e47a8074d83b932face86e3b3ec6f1 Mon Sep 17 00:00:00 2001 From: gitea Date: Fri, 8 Sep 2023 16:52:33 +0800 Subject: [PATCH] [add] rsync syncthing files to nextcloud --- update/nc_rsync.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 update/nc_rsync.sh diff --git a/update/nc_rsync.sh b/update/nc_rsync.sh new file mode 100644 index 0000000..7986894 --- /dev/null +++ b/update/nc_rsync.sh @@ -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 + +