Upload files to "/"
This commit is contained in:
11
games-backup.sh
Normal file
11
games-backup.sh
Normal 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
12
minecraft.service
Normal 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
13
minecraft.target
Normal 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
9
minecraft_backup.service
Normal 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
13
servers.target
Normal 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
|
||||||
Reference in New Issue
Block a user