Skip to content

Instantly share code, notes, and snippets.

@Tho85
Created November 26, 2016 13:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tho85/575ec4d5d01b305d4478568902d6f83f to your computer and use it in GitHub Desktop.
Save Tho85/575ec4d5d01b305d4478568902d6f83f to your computer and use it in GitHub Desktop.
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