From d157612e9e76486e9d00b3f763de402fe1bef218 Mon Sep 17 00:00:00 2001 From: Ben Nicholson Date: Mon, 13 Jan 2025 19:46:58 +1100 Subject: [PATCH] Delete backups/backup_dokuwiki.sh --- backups/backup_dokuwiki.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 backups/backup_dokuwiki.sh diff --git a/backups/backup_dokuwiki.sh b/backups/backup_dokuwiki.sh deleted file mode 100644 index 5a4d9bc..0000000 --- a/backups/backup_dokuwiki.sh +++ /dev/null @@ -1,37 +0,0 @@ -#/bin/bash -#docker config colder -docker_conf=/home/bsncubed/docker -now=$( date '+%F_%H%M%S' ) -cd $docker_conf -#remove old temp files -rm /tmp/dokuwiki_*.tar.gz -docker stop dokuwiki -tar cvzf /tmp/dokuwiki_$now.tar.gz dokuwiki -#tar error reporting -if [ $? -eq 0 ] -then - echo "send succsess" -else - curl -H "Content-Type: application/json" -d '{"content":"Dokuwiki backup **DID NOT COMPLETE**. It was at **Tar**","embeds":null,"username":"Dr Backup","avatar_url":"PIC URL","attachments":[]}' "DISCORD WEBHOOK" - exit -fi - -rsync -a /tmp/dokuwiki_$now.tar.gz moria.s0.is:backup_drive/Ben/dokuwiki -#rsync error reporting -if [ $? -eq 0 ] -then - echo "send succsessed" -else - curl -H "Content-Type: application/json" -d '{"content":"Dokuwiki backup **DID NOT COMPLETE** . It was at **rsync**","embeds":null,"username":"Dr Backup","avatar_url":"PIC URL","attachments":[]}' "DISCORD WEBHOOK" - exit -fi - -cd dokuwiki -docker compose up -d -if [ $? -eq 0 ] -then - curl -H "Content-Type: application/json" -d '{"content":"Dokuwiki backup completed sucsesfully <@264643868081782795>","embeds":null,"username":"Dr Backup","avatar_url":"PIC URL","attachments":[]}' "DISCORD WEBHOOK" -else - curl -H "Content-Type: application/json" -d '{"content":"Dokuwiki backup **DID NOT COMPLETE** <@264643868081782795>. It was at **docker**","embeds":null,"username":"Dr Backup","avatar_url":"PIC URL","attachments":[]}' "DISCORD WEBHOOK" - exit -fi