From 5782e0826bd4dc9b60c658b9dd1214ba13dfa76e Mon Sep 17 00:00:00 2001 From: Foxly IT <81775975+foxly-it@users.noreply.github.com> Date: Wed, 13 Oct 2021 07:05:27 +0200 Subject: [PATCH] Update backup.sh --- backup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backup.sh b/backup.sh index cc2dcc8..00549c0 100644 --- a/backup.sh +++ b/backup.sh @@ -13,19 +13,14 @@ NUM_CORES=$(nproc || echo 1) # Author : Mark Schenk # # Date : 2021-10-06 08:32 # # License : MIT # -# Version : 1.1 # +# Version : 1.2 # # # # Usage : bash ./backup.sh # -echo "" # -echo " Detected OS : $OS_DISTRO" # -echo " Detected Arch : $OS_ARCH" # -echo " Detected Cores : $NUM_CORES" # -echo "" # ############################################################## #################### # Helper functions # #################### -backup_VER="v1.1" +backup_VER="v1.2" str_repeat() { printf -v v "%-*s" "$1" "" @@ -94,6 +89,11 @@ echo " $WELCOME_TXT" echo " $(str_repeat "$WELCOME_FEN" "#")" echo "" +echo "" +echo " Detected OS : $OS_DISTRO" +echo " Detected Arch : $OS_ARCH" +echo " Detected Cores : $NUM_CORES" +echo "" ####################### # TODO / Variables # ####################### @@ -129,7 +129,7 @@ backupRepo="/path/to/Repo" # PostgreSQL # ######################################################################################################################################################################### # Optional only for PostgreSQL databases that are not stored in CloudPanel. # -echo -e "\e[93mcreate database backups" # +echo -e "\e[93mCreate database backup" # databases="DATABASENAME" # postbackupdir="/home/cloudpanel/backups" # sudo -u postgres pg_dump $databases > $postbackupdir/BBNC-$(date +%d-%m-%Y_%H-%M-%S).sql #