summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2021-11-28 23:15:08 -0500
committerSam Chudnick <sam@chudnick.com>2021-11-28 23:15:08 -0500
commita2934e19dbec489b691423fd5d82b79ac3b2b147 (patch)
treed5538d24b58c6130a582c541f466038a27e673ce
parent5c9df935636c6b5610a0d1f2bf3ed8dfcd10c856 (diff)
Fixed BORG_PASSCOMMAND to get correct password based off of specified location
-rwxr-xr-x.local/bin/backups/assimilate2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/backups/assimilate b/.local/bin/backups/assimilate
index 0137650..b222e79 100755
--- a/.local/bin/backups/assimilate
+++ b/.local/bin/backups/assimilate
@@ -17,7 +17,7 @@ LOG="$HOME/.config/borg/log"
17# who owns the password store. The environmental variable PASSWORD_STORE_DIR is passed through 17# who owns the password store. The environmental variable PASSWORD_STORE_DIR is passed through
18# SUDO_OPTS to the borg commands, and then passed to this command from the borg command 18# SUDO_OPTS to the borg commands, and then passed to this command from the borg command
19# by the same means. This allows custom password store locations to work with this script. 19# by the same means. This allows custom password store locations to work with this script.
20export BORG_PASSCOMMAND="sudo $SUDO_OPTS -u $USER pass Borg-Backup/$(hostname)-onsite" 20export BORG_PASSCOMMAND="sudo $SUDO_OPTS -u $USER pass Borg-Backup/$(hostname)-$LOCATION"
21 21
22# Backup root partition 22# Backup root partition
23sudo $SUDO_OPTS borg create $CREATE_OPTS \ 23sudo $SUDO_OPTS borg create $CREATE_OPTS \