Ts3 framework

I want to take a backup of my server with ts3 framework to /backups/ folder using post process. how can I do that? can you share the code block?

#!/bin/bash

# Path to your ts3 framework installation
TS3_PATH="/path/to/ts3/framework"

# Path to your backups folder
BACKUPS_PATH="/backups/"

# Stop the ts3 server
"${TS3_PATH}/ts3server_startscript.sh" stop

# Create a timestamp for the backup filename
TIMESTAMP=$(date +%Y%m%d%H%M%S)

# Backup command
"${TS3_PATH}/ts3server_minimal_runscript.sh" backup

# Move the backup file to the backups folder
mv "${TS3_PATH}/ts3server.sqlitedb" "${BACKUPS_PATH}/ts3_backup_${TIMESTAMP}.sqlitedb"

# Start the ts3 server again
"${TS3_PATH}/ts3server_startscript.sh" start

JUST TEST IT OUT BEFORE DOING THIS ON PROD. SYSTEM

I had it running automatically via crontab, ebsp.
“0 3 * * MON” and then the link to the script.

So you have an automatic backup system for your data

(data without rifles)

my codes are working on hosting i have not established ssh connection i am coding with php pdo. I want to take a backup by clicking the form button.

i dont know what you mean, or want to do…?

I’m building a web panel, I want to take a backup of the server with the button there.

yes easy, then take the code from above, make a script out of it, and execute the script on your server via button. done?

I guess I need to provide ssh2 connection there. I am using teamspeak3 framework and I manage it through hosting panel. I’m not connecting to the server via ssh2.

for backup use this software: https://yat.qa/