From 6ca6f56cfda0bd58b7d124dcae270259b14db608 Mon Sep 17 00:00:00 2001 From: Eric Meehan Date: Thu, 26 Jun 2025 12:57:25 -0400 Subject: [PATCH] Luanti backup service --- files/backup-luanti.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 files/backup-luanti.service diff --git a/files/backup-luanti.service b/files/backup-luanti.service new file mode 100644 index 0000000..74071a3 --- /dev/null +++ b/files/backup-luanti.service @@ -0,0 +1,12 @@ +[Unit] +Description=Create a tarball of luanti-luanti-minetest-config-pvc +After=network.target + +[Service] +Type=oneshot +ExecStart=/bin/bash -c "cd /data/alpha/luanti-luanti-minetest-config-pvc-82a282df-f147-4d83-ad83-376b1b06d99b/ && tar -czvf worlds_$(date| sed 's/ /_/g').tar.gz worlds" +StandardOutput=journal +StandardError=journal + +[Install] +WantedBy=multi-user.target