Jim Paris
a15cb5b07d
We don't need a read-write key: we can just SSH directly to jim-backups@backup.jim.sh instead and run commands thay way. Remove read-write key and document it in the README. Also add some tools to update the README variables on updates.
13 lines
307 B
Bash
Executable File
13 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
. "$(dirname "$0")"/vars.sh
|
|
|
|
export BORG_PASSCOMMAND="cat ${BORG_DIR}/passphrase"
|
|
export BORG_BASE_DIR=${BORG_DIR}
|
|
export BORG_CACHE_DIR=${BORG_DIR}/cache
|
|
export BORG_CONFIG_DIR=${BORG_DIR}/config
|
|
export BORG_RSH="ssh -F $SSH/config -i $SSH/id_ecdsa_appendonly"
|
|
|
|
exec "${BORG_BIN}" "$@"
|