21 current 2025-10-07 14:43:59 25.05.20251001.5b5be50 6.12.49 *

This commit is contained in:
2025-10-07 14:48:42 -05:00
parent 8f1e0dcb85
commit be76590d1f
2 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ in
};
config = lib.mkIf (backup_paths != []) {
systemd.services.borg-backup = {
systemd.services.backups = {
description = "BorgBackup service for system data";
serviceConfig = {
Type = "oneshot";
@@ -39,6 +39,7 @@ 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