Skip to content

Instantly share code, notes, and snippets.

@ParadauxDev
Created July 26, 2017 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ParadauxDev/238bc1fa7bfad52b2a52ae6be851eab4 to your computer and use it in GitHub Desktop.
Save ParadauxDev/238bc1fa7bfad52b2a52ae6be851eab4 to your computer and use it in GitHub Desktop.
Pterodactyl Backup Script
#!/bin/bash
SRCDIR="/srv/daemon-data"
DESTDIR="/backups"
FILENAME=backup-$(date +%-Y%-m%-d)-$(date +%-T).tgz
tar vcf /backups/$FILENAME $SRCDIR
#scp "/backups/$FILENAME" root@remote-machine:/root/backups/ -- Optional, SCP the file over to a remote server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment