Last active
February 15, 2020 10:52
-
-
Save njam/32c80571b23246ab98a6ca9c22f9c527 to your computer and use it in GitHub Desktop.
restic systemd config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Restic backup %I | |
[Service] | |
Type=oneshot | |
Environment="HOME=%h" | |
ExecStart=/usr/bin/restic backup $BACKUP_ARGS "${BACKUP_PATH}" | |
ExecStart=/usr/bin/restic forget --prune $FORGET_ARGS | |
ExecStart=/usr/bin/restic check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Restic backup %I | |
[Timer] | |
OnCalendar=hourly | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup
Copy template files
[email protected]
and[email protected]
into/etc/systemd/system/
.Create a new scheduled backup
Insert the following configuration, adjusted to your needs: