Files
random-scripts/systemd/copy-grimdawn-save.service

11 lines
435 B
Desktop File

[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}