Update backup.sh

This commit is contained in:
Foxly IT 2021-10-13 06:56:24 +02:00 committed by GitHub
parent f74eab4ce0
commit fff887730a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,8 @@ echo "" #
####################
# Helper functions #
####################
backup_VER="v1.1"
displaytime() {
local T=$1
@ -40,6 +42,7 @@ displaytime() {
printf '%d seconds\n' $S
}
####################
# Colors #
####################
@ -76,6 +79,16 @@ if ! command_exists lsb_release; then
apt-get update && apt-get install -qq lsb-release > /dev/null 2>&1
fi
echo -ne "\ec"
WELCOME_TXT="Welcome to BBNC - BorgBackup Nextcloud ${backup_VER}"
WELCOME_FEN=${#WELCOME_TXT}
echo ""
echo " $(str_repeat "$WELCOME_FEN" "#")"
echo " $WELCOME_TXT"
echo " $(str_repeat "$WELCOME_FEN" "#")"
echo ""
#######################
# TODO / Variables #