Skip to content

Instantly share code, notes, and snippets.

@Tho85

Tho85/duply.service

Created Nov 26, 2016
Embed
What would you like to do?
Duply systemd integration
[Unit]
Description=Duply backup
After=network.target
Wants=network.target
[Service]
Type=oneshot
ExecStart=/bin/true
ExecReload=/bin/true
[Unit]
Description=Run duply backups
[Timer]
OnCalendar=9,18:00
RandomizedDelaySec=15min
Persistent=true
[Install]
WantedBy=timers.target
[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