From a2934e19dbec489b691423fd5d82b79ac3b2b147 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 28 Nov 2021 23:15:08 -0500 Subject: Fixed BORG_PASSCOMMAND to get correct password based off of specified location --- .local/bin/backups/assimilate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/backups/assimilate') 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" # who owns the password store. The environmental variable PASSWORD_STORE_DIR is passed through # SUDO_OPTS to the borg commands, and then passed to this command from the borg command # by the same means. This allows custom password store locations to work with this script. -export BORG_PASSCOMMAND="sudo $SUDO_OPTS -u $USER pass Borg-Backup/$(hostname)-onsite" +export BORG_PASSCOMMAND="sudo $SUDO_OPTS -u $USER pass Borg-Backup/$(hostname)-$LOCATION" # Backup root partition sudo $SUDO_OPTS borg create $CREATE_OPTS \ -- cgit v1.2.3