Remove password from borg script
This commit is contained in:
parent
22836f3210
commit
b7634be0a5
3 changed files with 4 additions and 2 deletions
|
@ -44,7 +44,8 @@ touch "$cache_file"
|
||||||
BORG_REPO=ssh://flyingscorpio@2px.info:22/~/"$(hostname)".borg
|
BORG_REPO=ssh://flyingscorpio@2px.info:22/~/"$(hostname)".borg
|
||||||
export BORG_REPO
|
export BORG_REPO
|
||||||
|
|
||||||
export BORG_PASSPHRASE='ribosome66'
|
BORG_PASSPHRASE="$BORG_PASSPHRASE"
|
||||||
|
export BORG_PASSPHRASE
|
||||||
|
|
||||||
# some helpers and error handling:
|
# some helpers and error handling:
|
||||||
info() { printf "\n%s %s\n\n" "$(date)" "$*" >&2; }
|
info() { printf "\n%s %s\n\n" "$(date)" "$*" >&2; }
|
||||||
|
|
|
@ -8,5 +8,5 @@ Target = *
|
||||||
[Action]
|
[Action]
|
||||||
Description = Borg backup
|
Description = Borg backup
|
||||||
When = PreTransaction
|
When = PreTransaction
|
||||||
Exec = /home/flyingscorpio/SetupCockpit/borg_backup.sh
|
Exec = source /home/flyingscorpio/SetupCockpit/secrets && /home/flyingscorpio/SetupCockpit/borg_backup.sh
|
||||||
Depends = borg
|
Depends = borg
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# secrets - is sourced by some commands - this is a template
|
# secrets - is sourced by some commands - this is a template
|
||||||
|
|
||||||
SETUP_COCKPIT_EMAIL=''
|
SETUP_COCKPIT_EMAIL=''
|
||||||
|
BORG_PASSPHRASE=''
|
||||||
|
|
Loading…
Add table
Reference in a new issue