As the title says, I would like to utilize the backup/restore functionality in the UI but I dont want to take a backup of the full container only a few directories within the container and then restore those files. If this is not the way to go about it, would a better way be to write a script to run via cron that looks at the server volumes in /var/lib/pterodactyl? Reason is backups are 8GB a piece, and I dont need to restore full container just game save files (Ark SA). Thank you in advanced
#How to Backup only a few specific directories and not entire container?
7 messages · Page 1 of 1 (latest)
You mean in panel ?
Enter the files or folders to ignore while generating this backup. Leave blank to use the contents of the .pteroignore file in the root of the server directory if present. Wildcard matching of files and folders is supported in addition to negating a rule by prefixing the path with an exclamation point.
like for 7d2d
https://pterodactyleggs.com/egg/6735ff3d4924a4e9bbcb73ca
Sample ignore file for backups
By default the backup includes a lot of files that can be reacquired by pulling the image. Using the following file limits backups to the files that are unique to your server: your config files, logs, saves and generated worlds.
# Ignore all
*
# Except server config file
!serverconfig.xml
# Except server data dir
!.local/
# Except logs
!logs/
7 days to die server
cool thank you! so this only includes the serverconfig.xml, .local/ and logs/ in the backup. I will try this now
also when you restore, does it then only restore these files?
or do i need to reinstall server and upload these files/directories?
it can only restore what is inside the backup ?