Backups funktionieren grundsätzlich
This commit is contained in:
1 parent
b96dad9b50
commit
0c78fbaa4f
3 files changed
+36
-16
No files matched your search
@@ -28,6 +28,12 @@ gpg --batch --decrypt --passphrase 1234567890 -o test.txt test.txt.gpg # ohne -
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### ssh
|
||||||
|
|
||||||
|
auf nathan
|
||||||
|
|
||||||
|
je Server ssh -mount-point-/Server/bin/backup/cron.sh -mount-point-/Server/log/backup/-server-/backup.x.log
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# entrypoint for all actions
|
|
||||||
#
|
|
||||||
|
|
||||||
echo "not implemented yet"
|
|
||||||
@@ -1,16 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
HOSTNAME=$(hostname)
|
HOST_NAME=$(hostname)
|
||||||
DAY=$(date +%u)
|
DAY=$(date +%u)
|
||||||
|
HERE=$(dirname "$0")
|
||||||
|
|
||||||
RUN_DIR=/var/docker
|
|
||||||
BACKUP_DIR=vol
|
|
||||||
SOURCE=nextcloud
|
|
||||||
TARGET_DIR=/var/docker/tmp
|
|
||||||
PASSPHRASE=1234567890
|
PASSPHRASE=1234567890
|
||||||
EXT=tgz.gpg
|
EXT=tgz.gpg
|
||||||
|
|
||||||
RESTORE=vol/nextcloud/data/data/nextcloud.log
|
|
||||||
|
|
||||||
# Log-Datei schreiben.
|
# Log-Datei schreiben.
|
||||||
#
|
#
|
||||||
@@ -275,17 +271,41 @@ hamiller_test() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
#LOG_FILE=./t1.log
|
for i in "$@"; do echo "$i"; done
|
||||||
#log INFO "error test"
|
|
||||||
echo "host: #$1#"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isFunction() { declare -Ff "$1" ; }
|
||||||
|
|
||||||
#nas_test
|
#nas_test
|
||||||
#nathan_test
|
#nathan_test
|
||||||
#hamiller_test
|
#hamiller_test
|
||||||
#test1
|
#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
|
exit
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user