Skip to content

JTWP-org/backUpLogs2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BackUpLogs v2

JTWP

Script made for the community JTWP (Joes Toes Water Park) but open for anyone to use. The URL above is a Discord redirect.


PavlovVR

No More Lost Logs

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.

SETTINGS

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:


INSTALLATION INSTRUCTIONS

Step 1: Clone the Repository

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

Step 2: Change Directory

Change into the newly cloned directory:

cd backUpLogs2

Step 3: Set Permissions

Give execute permissions to the scripts:

sudo chmod +x bkUp.sh discord.sh

Step 4: Schedule with Crontab

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.


Credits and Acknowledgments

Credit for portions of this code, including the discord.sh script, goes to external sources.https://github.com/fieu/discord.sh