Created
November 26, 2016 13:35
-
-
Save Tho85/575ec4d5d01b305d4478568902d6f83f to your computer and use it in GitHub Desktop.
Duply systemd integration
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=Duply backup | |
After=network.target | |
Wants=network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/true | |
ExecReload=/bin/true |
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=Run duply backups | |
[Timer] | |
OnCalendar=9,18:00 | |
RandomizedDelaySec=15min | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
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=Backup service | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=oneshot | |
Environment=HOME=/root | |
ExecStart=/usr/bin/duply %i backup_purge --force | |
[Install] | |
WantedBy=duply.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment