Created
July 26, 2017 02:11
-
-
Save ParadauxDev/238bc1fa7bfad52b2a52ae6be851eab4 to your computer and use it in GitHub Desktop.
Pterodactyl Backup Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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