This commit is contained in:
2026-04-07 12:13:48 +02:00
parent dd0d32761e
commit 41d3b34cff
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -28,6 +28,7 @@ SSH_KEY="/root/.ssh/id_ed25519"
logfilename="/tmp/nextcloud-databkp_$(date +"%Y%m%d").log"
logNCFilename="nextcloud-data-backup_$(date +"%Y%m%d%H%M")_log.txt"
#copy data
# rsync mit Ausschlussfiltern:
# --exclude 'DATEINAME': Verhindert, dass diese Datei kopiert wird
rsync -avzh \
@@ -40,7 +41,6 @@ rsync -avzh \
--exclude 'updater.log.1' \
--exclude 'flow.log' \
--exclude 'flow.log.1' \
--exclude 'appdata_ocubwyrxncdg' \
--progress \
"$SOURCE_DIR" "$REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR" > $logfilename
@@ -50,6 +50,11 @@ if [ $? -eq 0 ]; then
else
Mesg="${Mesg}Nextcloud Data rsync failed."
fi
#todo Database backup
#todo App backup
MesgID=$(sendMessage2Room $NC_URL $NC_USER $NC_APP_PASSWORD $ROOM_TOKEN "$Mesg")
sendFile2Room $NC_URL $NC_USER $NC_APP_PASSWORD $ROOM_TOKEN $logfilename $logNCFilename
rm $logfilename
+1 -1
View File
@@ -10,7 +10,7 @@
#this constants is used to control the debug output
#Set libDebug to true to enable debug output, false to disable
libDebug=true
libDebug=false
# logging functions
# These functions are used to log messages to the console