[Unit] Description=Back up Terraria server (%i) Documentation=file://@DOCDIR@/README.md [Service] Type=oneshot # Saves the world first if the server is running, then archives the instance # (without server/) into /var/lib/terraria/backups/%i/ and removes the oldest # scheduled backups beyond the number to keep. Set up with: # terractl backup enable %i [--every ] [--keep ] ExecStart=@BINDIR@/terractl backup now %i Nice=10 IOSchedulingClass=idle # Runs as root, like 'sudo terractl backup now' NoNewPrivileges=true ProtectSystem=full PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true