diff options
author | EuAndreh <eu@euandre.org> | 2020-08-10 12:15:49 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-10 12:45:43 -0300 |
commit | 100ab568e3aeb512e86fd1155a73454d22e24895 (patch) | |
tree | 1d7ff9168b8cfc60e173f2a19f30938bc68d0f6e /scripts/box/restore-backup.env.sh | |
parent | WIP: Move to Vultr and NixOS (diff) | |
download | server-100ab568e3aeb512e86fd1155a73454d22e24895.tar.gz server-100ab568e3aeb512e86fd1155a73454d22e24895.tar.xz |
Migration: Remove Ansible and Docker code, move only to NixOS
Diffstat (limited to 'scripts/box/restore-backup.env.sh')
-rwxr-xr-x | scripts/box/restore-backup.env.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/box/restore-backup.env.sh b/scripts/box/restore-backup.env.sh deleted file mode 100755 index 151ded5..0000000 --- a/scripts/box/restore-backup.env.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -set -Eeuo pipefail - -export BORG_REMOTE_PATH="${BORG_REMOTE_PATH}" -export BORG_PASSPHRASE="${BORG_PASSPHRASE}" - -pushd "$(mktemp -d)" || exit 1 - -# It is actually being used below using the DOLLAR interpolation -# shellcheck disable=SC2034 -ARCHIVE="$(borg list "${BORG_REPO}" --last 1 --short)" - -echo "Extracting archive ${DOLLAR}{ARCHIVE}" -borg extract \ - --verbose \ - --progress \ - "${BORG_REPO}::${DOLLAR}{ARCHIVE}" -echo "Done." - -mv home/vps/volumes/* /home/vps/volumes/ -popd || exit 1 |