Script made for the community JTWP (Joes Toes Water Park) but open for anyone to use. The URL above is a Discord redirect.
BackUpLogs v2 is designed for the game PavlovVR and is used by community servers.
- The game purges logs after a few days, making it important to back them up.
To tailor the script to your needs, modify the variables in the Settings.sh
file. It's important to set these before running the script for the first time:
-
backUpDir="/home/steam/logs"
Where you want the saved files to be placed (use full path, no~
). -
whereIsThisScript=""
The installation location of this script. -
webHook="true"
Enable or disable the webhook (true or false). -
icon='https://cdn.discordapp.com/attachments/932110907729920080/1130204308315578459/6328646.png'
Ideally, use a Discord URL.
Navigate to the directory where you want the script to be located and clone the repository:
git clone https://github.com/JTWP-org/backUpLogs2.git
Change into the newly cloned directory:
cd backUpLogs2
Give execute permissions to the scripts:
sudo chmod +x bkUp.sh discord.sh
The script is set to run at specified intervals using crontab. To edit your crontab configuration:
crontab -e
This command opens a text editor for the crontab file. Note: Use absolute paths as the ~
shortcut does not work here.
To run the script every day at 8 AM, for example, add the following line:
0 8 * * * bash /absolute/path/to/backUpLogs2/bkUp.sh
Replace /absolute/path/to/backUpLogs2/
with the full path to where bkUp.sh
is located.
Credit for portions of this code, including the discord.sh
script, goes to external sources.https://github.com/fieu/discord.sh