The script allows you to set up a cron for regular backups of the Pterodactyl panel database and save the backup to another server using FTP. In case of a failed backup, there is also an webhook to send a notification to Discord.
- Create
backup
folder in/etc/
- Paste code in
backup.sh
:
#!/bin/sh
# Leave empty if you don't want to send a message to Discord, otherwise put the webhook link here
HOOK_LINK=""