diff --git a/NextcloudBackupScript.sh b/NextcloudBackupScript.sh index 0e934f6..06e6788 100755 --- a/NextcloudBackupScript.sh +++ b/NextcloudBackupScript.sh @@ -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 diff --git a/TalkLib.sh b/TalkLib.sh index 4d2d5a6..dfea333 100755 --- a/TalkLib.sh +++ b/TalkLib.sh @@ -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