Skip to content

SweetDaddyRizz/tt-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

TT Backup

My personal script to back up TT servers on Linux.

Notes

  • The directory /home/tt/*.xml (by default) is where the script assumes your TeamTalk server configuration files are stored, as that is my setup. I use Doug Lee and Daniel Nash's TT script for my TeamTalk server manager of choice.

  • Currently it only backs up XML files. If you would like it to back up everything, remove the "/*.xml" from the script.

  • Note: You will have to run this in a cronjob (see below).

  • Optional ntfy alerts are supported. Set the NTFY environment variable to the full topic URL, for example https://ntfy.sh/my-topic or https://your-server.example.com/my-topic, and the script will send a notification on success or failure.

Running in a Cronjob

The following line (added to your crontab with crontab -e) will run the script at 03:00 daily, and assumes you are running at ./tt-backup/tt-backup.sh:

0 3 * * * ./tt-backup/tt-backup.sh

To enable ntfy alerts in cron, set NTFY inline with the job:

0 3 * * * NTFY=https://ntfy.sh/my-topic ./tt-backup/tt-backup.sh

Contributions

Improvements are always welcome; please open an issue or send in a PR!

Enjoy!

About

Easily back up TeamTalk server files on Linux

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages