File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 2
2
Simple backup script for servers running in screen using 7zip for compression.
3
3
4
4
## Prerequisites
5
+ - ** screen**
5
6
- ** p7zip**
6
7
- ** cron** or similar (for automatic backups)
7
8
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # don't execute script if backup is in progress
4
- [ -f backup.lock ] && exit 0
5
-
6
-
7
3
# ======== #
8
4
# Config #
9
5
# ======== #
6
+ cd /home/minecraft/ # change working directory where the scripts are located
7
+
8
+ # don't execute script if backup is in progress
9
+ [ -f backup.lock ] && exit 0
10
+
10
11
server_jar=" fabric-server-launch.jar" # server jar to monitor
11
12
screen_name=" minecraft" # name of the screen the server is running
12
- dir=" minecraft " # cd the screen session in this directory
13
+ dir=" . " # cd the screen session in this directory ("." if no change)
13
14
start_script=" start.sh"
14
15
15
16
Original file line number Diff line number Diff line change 3
3
# ======== #
4
4
# Config #
5
5
# ======== #
6
+ cd /home/minecraft/ # change working directory where the scripts are located
6
7
sleep=10 # wait time for the backup in seconds after the anouncement
7
8
stop_server=0 # 0-1
8
9
source_path=" /home/minecraft/server/*"
You can’t perform that action at this time.
0 commit comments