[add] rsync syncthing files to nextcloud
This commit is contained in:
parent
90aea333fd
commit
59cb3622f4
9
update/nc_rsync.sh
Normal file
9
update/nc_rsync.sh
Normal 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user