aboutsummaryrefslogtreecommitdiff
path: root/dot_config/systemd/user/backup-email.service
blob: 47260f1697286bcf5d7fedf949f16d1359a4c222 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[Unit]
Description=backup dovecot
Wants=network-online.target
BindsTo=dovecot.service
After=network-online.target
ConditionFileNotEmpty=/media/t/Archives/email/rak.ac/backup.sh
Before=borgmatic@tosh.service

[Install]
WantedBy=borgmatic@tosh.service

[Service]
Type=oneshot
LockPersonality=true
MemoryDenyWriteExecute=no
NoNewPrivileges=yes
PrivateTmp=yes
ProtectControlGroups=yes
ProtectHostname=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
ProtectSystem=full

Nice=19
CPUSchedulingPolicy=batch
IOSchedulingClass=best-effort
IOSchedulingPriority=7
IOWeight=100

Restart=no
LogRateLimitIntervalSec=0

ExecStart=/media/t/Archives/email/rak.ac/backup.sh