Exclude files from a backup (.pteroignore)
Make your backups lighter by excluding logs, caches and large unnecessary files.
Backups count towards your storage space. Excluding unnecessary files (logs, caches, rendered maps) makes them lighter and faster.
Two ways to exclude files
- For a single backup: fill in the Ignored Files & Directories field when you create it.
- For all backups: create a file named
.pteroignoreat the root of the server. It is used whenever the field above is left empty.
Syntax
One rule per line. The asterisk * stands for any sequence of characters; an exclamation mark ! at the start cancels a rule.
logs/
cache/
*.log
crash-reports/
plugins/dynmap/web/tiles/
!logs/important.log
In this example, the logs, cache and crash-reports folders, the .log files and the web map tiles are ignored, except logs/important.log.
Never exclude your world folder or your configuration files: the backup would become useless.
Need a hand?
The Koinswift team answers 7 days a week, by ticket from your client area or on Discord.
