Debian Codegraph @

systemd-unit.examples/system/[email protected]

raw
1 # This file is part of duply.
2 #
3 # Common way of activating this service is via
4 # service manager:
5 #
6 # if 'humbug' is an existing duply profile in ~/.duply:
7 #
8 # $ systemctl start [email protected]
9 #
10
11 [Unit]
12 Description=Duply cleanup of old backups for %I
13 After=local-fs.target time-sync.target duply-backup@%i.service duply-verify@%i.service
14 Conflicts=shutdown.target
15 Before=shutdown.target
16 OnFailure=notify-failed-backup@%n
17 Documentation=https://duply.net/wiki/index.php/Duply-documentation
18
19 [Service]
20 Type=oneshot
21 # HOME must point to root's home so that duply can locate the profile
22 Environment="HOME=/root"
23 ExecStart=sh -c "/usr/bin/duply %i purgeAuto --force; /usr/bin/duply %i cleanup --force"
24 IOSchedulingClass=idle
25
26 [Install]
27 WantedBy=multi-user.target