26 current 2025-10-07 15:27:08 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -45,7 +45,6 @@ in
|
||||
|
||||
# Initialize repo if it doesn't exist
|
||||
if ! borg info "$BORG_REPO" >/dev/null 2>&1; then
|
||||
# mkdir -p "$BORG_REPO"
|
||||
echo "init borg repo at $BORG_REPO"
|
||||
borg init --encryption=repokey "$BORG_REPO"
|
||||
fi
|
||||
@@ -59,7 +58,7 @@ in
|
||||
--stats \
|
||||
--show-rc \
|
||||
--compression lz4 \
|
||||
"$BORG_REPO::$(host)-$(date +'%Y-%m-%dT%H:%M:%S')" \
|
||||
"$BORG_REPO::$(HOST)-$(date +'%Y-%m-%dT%H:%M:%S')" \
|
||||
${lib.concatStringsSep " " cfg.paths}
|
||||
|
||||
# Prune old backups according to retention policy
|
||||
|
||||
Reference in New Issue
Block a user