diff --git a/rsync-nextcloud/exclude-list b/rsync-nextcloud/exclude-list index 9131252..92871a9 100644 --- a/rsync-nextcloud/exclude-list +++ b/rsync-nextcloud/exclude-list @@ -1 +1,2 @@ backup_all_databases_cMxNrCTVLBPrNo6qaonojeejCvCepekwssh +nextcloud/config/config.php diff --git a/rsync-nextcloud/rsync-nextcloud.sh b/rsync-nextcloud/rsync-nextcloud.sh index aee76d7..cb1a34d 100755 --- a/rsync-nextcloud/rsync-nextcloud.sh +++ b/rsync-nextcloud/rsync-nextcloud.sh @@ -57,12 +57,14 @@ ssh -p $PORT -i $KEY $USER_AT_HOST "sudo umount $SBZ_MOUNT_PATH" cd $DEST_PATH_DB # kick off DB dumping -curl https://rob.spaceboyz.net/backup_all_databases_cMxNrCTVLBPrNo6qaonojeejCvCepekwssh/dump_all_databases.php +curl --insecure https://rob.spaceboyz.net/backup_all_databases_cMxNrCTVLBPrNo6qaonojeejCvCepekwssh/dump_all_databases.php # download DB dumps -wget https://rob.spaceboyz.net/backup_all_databases_cMxNrCTVLBPrNo6qaonojeejCvCepekwssh/dumps.zip +wget --no-check-certificate https://rob.spaceboyz.net/backup_all_databases_cMxNrCTVLBPrNo6qaonojeejCvCepekwssh/dumps.zip if [ -f dumps.zip ] then - mv dumps.zip all_databases_dump.zip + today=`date +%F` + mv dumps.zip all_databases_dump_$today.zip else echo "Datenbank Dump konnte nicht herunter geladen werden" fi + diff --git a/rsync-nextcloud/sbz_keyless b/rsync-nextcloud/sbz_keyless old mode 100644 new mode 100755