Add borg script to break lock

master
Jeff Moe 6 years ago
parent 5babed3cc5
commit a441c38d5f

@ -0,0 +1,30 @@
#!/bin/bash
# Copyright (C) 2018, Fork Sand, Inc.
# Copyright (C) 2017, aleph Objects, Inc.
# GPLv3
export BORG_REPO="BACKUPS/borg/`hostname`"
export BORG_SERVER="9274@prio.usw-s009.rsync.net"
#export BORG_PASSPHRASE="`cat /root/.borgpw`"
export BORG_BINARY="borg1"
#export BORG_DISPLAY_PASSPHRASE=0
#export BORG_LOGGING_CONF=
export BORG_RSH="ssh -i /root/.ssh/id_ed25519-borg-`hostname`"
export BORG_REMOTE_PATH=borg1
#export BORG_FILES_CACHE_TTL=20
#export TMPDIR=
export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=no
export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
export BORG_CHECK_I_KNOW_WHAT_I_AM_DOING=yes
export BORG_DELETE_I_KNOW_WHAT_I_AM_DOING=no
export BORG_KEYS_DIR="/root/.config/borg/keys"
export BORG_CACHE_DIR="/root/.cache/borg"
echo "Checking Server: $BORG_SERVER"
echo "Checking Repo: $BORG_REPO"
echo
borg break-lock \
--verbose \
$BORG_SERVER:$BORG_REPO
Loading…
Cancel
Save