sync full source from private myoffice

This commit is contained in:
myoffice-sync
2026-08-05 10:55:09 +00:00
parent 874796c860
commit 405abdfe69
714 changed files with 70352 additions and 234 deletions
+19
View File
@@ -0,0 +1,19 @@
host=$1
servicename=$2
path=$3
clear
echo "-= SERVICE STOP =-"
ssh root@$host ''systemctl is-active $servicename''
ssh root@$host ''systemctl stop $servicename''
ssh root@$host ''systemctl is-active $servicename''
echo "-= COPY FILES =-"
rsync -r --info=progress2 --exclude appsettings*.json _Published/ root@$host:$path
rsync -r --ignore-existing --info=progress2 _Published/appsettings*.json root@$1:$path
echo "-= SERVICE START =-"
ssh root@$host ''systemctl start $servicename''
echo "-= SERVICE STATUS =-"
ssh root@$host ''systemctl status $servicename''