Backups funktionieren grundsätzlich

This commit is contained in:
Hartmut Bauer committed 2025-03-21 00:37:01 +01:00
1 parent b96dad9b50
commit 0c78fbaa4f
3 files changed
+36 -16

No files matched your search

+30 -10
View File
@@ -1,16 +1,12 @@
#!/usr/bin/env bash
HOSTNAME=$(hostname)
HOST_NAME=$(hostname)
DAY=$(date +%u)
HERE=$(dirname "$0")
RUN_DIR=/var/docker
BACKUP_DIR=vol
SOURCE=nextcloud
TARGET_DIR=/var/docker/tmp
PASSPHRASE=1234567890
EXT=tgz.gpg
RESTORE=vol/nextcloud/data/data/nextcloud.log
# Log-Datei schreiben.
#
@@ -275,17 +271,41 @@ hamiller_test() {
}
test() {
#LOG_FILE=./t1.log
#log INFO "error test"
echo "host: #$1#"
for i in "$@"; do echo "$i"; done
}
isFunction() { declare -Ff "$1" ; }
#nas_test
#nathan_test
#hamiller_test
#test1
list_archives /var/docker/tmp
list1() {
EXCL=("eaDir" "Temporary Items" "lost+found" backups)
ONE="erster #1"
TWO="zweiter #1"
#for i in "${a[@]}"; do echo "$i"; done
}
list2() {
EXCL=("@eaDir" "Temporary Items" "lost+found")
ONE="eins2"
TWO="zwei2"
#for i in "${a[@]}"; do echo "$i"; done
}
count=1
isFunction list4
while [ $(isFunction list$count) ]; do
list$count
for i in "${EXCL[@]}"; do echo "$i"; done
echo "$count: one = ${ONE} / two = ${TWO}"
let "count += 1"
done
exit