Skip to content

Instantly share code, notes, and snippets.

View ArtyomCZ's full-sized avatar
🏗️
I'm working on new things

ArtyomCZ

🏗️
I'm working on new things
View GitHub Profile
@ArtyomCZ
ArtyomCZ / pterodactyl-backup.md
Created March 10, 2024 03:17
Backup Pterodactyl panel database with FTP remote server

Backup of the Pterodactyl Panel database and upload to the FTP server

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.

  1. Create backup folder in /etc/
  2. 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=""