Add grim dawn backup stuff

This commit is contained in:
2026-01-05 19:19:48 -08:00
parent bb784449e7
commit 9feb7a3308
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Copy Grim Dawn (the game) save for backup
[Service]
Type=oneshot
Environment=GAME_PATH=%h"/games/gog/grim-dawn/drive_c/users/steamuser/Documents/My Games/Grim Dawn/"
Environment=BACKUP_PATH=%h"/nextcloud/Games/Backups/Grim Dawn/"
Environment="PASSPHRASE=a"
ExecStart=duplicity backup --full-if-older-than 5D ${GAME_PATH} file://${BACKUP_PATH}
ExecStart=duplicity remove-older-than 15D --force file://${BACKUP_PATH}

View File

@ -0,0 +1,11 @@
[Unit]
Description=Copy Grim Dawn (the game) save for backup timer
[Timer]
OnCalendar=daily
AccuracySec=10m
OnStartupSec=5m
Persistent=yes
[Install]
WantedBy=default.target