Collaborate with systemd to load categorized envvars

This commit is contained in:
Ohad Livne 2025-07-11 00:30:47 +03:00
parent ea474c6178
commit be9faf5b08
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
8 changed files with 27 additions and 14 deletions

View file

@ -1,8 +1,5 @@
#! /usr/bin/sh
export BORG_REPO="/media/backup/"
export BORG_PASSCOMMAND="cat ${HOME}/.keys/borg-passphrase.txt"
TS_DIR="$(systemd-path user-state-private)"/backup
mkdir -p "${TS_DIR}"