aboutsummaryrefslogblamecommitdiff
path: root/dot_config/systemd/user/backup-email@.service
blob: a3ab96f65920ad4c5fe3742969daeb6d82032e31 (plain) (tree)
1
2
3
4
5


                           
                           
                                                          


























                                                           
                                              
[Unit]
Description=backup dovecot
Wants=network-online.target
After=network-online.target
ConditionFileNotEmpty=/media/t/Archives/email/%I/backup.sh

[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/%I/backup.sh