Upload files to "/"

This commit is contained in:
2025-08-15 08:59:48 -04:00
commit 079c28ac33
5 changed files with 58 additions and 0 deletions

11
games-backup.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
TIMESTAMP=$(date +%F)
mcbakup(){
cd /home/marcus/Wonderbit-Server
cp -r Wonderbit ~/Wonderbit_$TIMESTAMP
}
mcbakup
echo "Wonderbit Backup Complete">>~/Desktop/log.txt

12
minecraft.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=Wonderbit Minecraft Service
[Service]
User=marcus
Group=games
WorkingDirectory=/home/marcus/Wonderbit-Server
ExecStart=/usr/lib/jvm/java-21-openjdk-amd64/bin/java -Xms4G -Xmx4G -jar /home/marcus/Wonderbit-Server/server.jar -nogui
[Install]
WantedBy=minecraft.target

13
minecraft.target Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=Minecraft - All Services
Requires=minecraft.service minecraft-backup.service
After=network.target
[Service]
User=marcus
Group=games
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target

9
minecraft_backup.service Normal file
View File

@@ -0,0 +1,9 @@
[Unit]
Description=Minecraft Backup Service
[Service]
User=marcus
Group=games
WorkingDirectory=/home/stanley
ExecStart=/home/stanley/weeklies.sh

13
servers.target Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=Game-Servers - All Services
Requires=minecraft.target valheim.service WindwardHorizon.service Terraria.service
After=network.target
[Service]
User=marcus
Group=games
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target