#If set false, no backups are being made.
enabled = true
#Experimental setting available, look at 'simplebackups-common-experimental.toml' to help testing
#Defines the backup type.
#- FULL_BACKUPS - always creates full backups
#- MODIFIED_SINCE_LAST - only saves the files which changed since last (partial) backup
#- MODIFIED_SINCE_FULL - saves all files which changed after the last full backup
#Allowed Values: FULL_BACKUPS, MODIFIED_SINCE_LAST, MODIFIED_SINCE_FULL
backupType = "FULL_BACKUPS"
#Should a save-all be forced before backup?
saveAll = true
#How often should a full backup be created if only modified files should be saved? This creates a full backup when x minutes are over and the next backup needs to be done. Once a year is default.
# Default: 525960
# Range: 1 ~ 5259600
fullBackupTimer = 525960
#Experimental setting available, look at 'simplebackups-common-experimental.toml' to help testing
#The max amount of backup files to keep.
# Default: 10
# Range: 1 ~ 32767
backupsToKeep = 10
#The time between two backups in minutes
#5 = each 5 minutes
#60 = each hour
#1440 = each day
# Default: 120
# Range: 1 ~ 32767
timer = 120
#Compression level:
#  0  = no compression (low CPU usage, larger files)
#  9  = maximum compression (high CPU usage, smaller files)
#  -1 = default; balances speed and compression (recommended)
# Default: -1
# Range: -1 ~ 9
compressionLevel = -1
#Should message be sent when backup is in the making?
sendMessages = true
#The max size of storage the backup folder. If it takes more storage, old files will be deleted.
#Needs to be written as <number><space><storage type>
#Valid storage types: B, KB, MB, GB, TB
maxDiskSize = "25 GB"
#Used to define the output path.
outputPath = "simplebackups"
#Create backups, even if nobody is online
noPlayerBackups = false
#Should sub-directories be generated for each world?
#Keep in mind that all configs above, including backupsToKeep and maxDiskSize, will be calculated for each sub directory.
createSubDirs = true
#Use an internal tick counter instead of the real world time. The value of the timer will be converted to ticks. When the timer is over, the backup will be created.
#Keep in mind that lagging servers will result in larger gaps between two backups, e.g. 10 FPS in average will result in double the time set between backups.
useTickCounter = false

#WARNING Please check your configuration before using permanently.
#The backup system will ignore these paths and files.
[to_ignore]
	#All directories that should be excluded from backups
	#Format: Enter paths relative to the world directory (e.g., 'logs', 'data/cache')
	#All files within these directories will also be excluded
	ignored_paths = []
	#Specific files that should be excluded from backups
	#Format: Enter complete file paths relative to the world directory (e.g., 'level.dat_old', 'stats/player.json')
	#Use this for individual files rather than entire directories
	ignored_files = []
	#Regular expression pattern to exclude matching files from backups
	#All files with paths matching this pattern will be skipped
	#Example: '.*\.temp$' excludes all files ending with .temp
	#Leave empty to disable regex-based file exclusion
	ignored_files_regex = ""

[mod_compat]
	#Should backup notifications be sent to Discord by using mc2discord? (needs to be installed)
	mc2discord = true
	#Should only worlds be backed up that are marked as favorite by Cherished Worlds mod?
	onlyFavorites = false

#WARNING This configuration should stay as default if backups are not monitored properly.
[error_handling]
	#I/O Errors will be collected and print into the chat. The mod tries to complete the backup with as many files as possible. Otherwise, it will abort after the first error.
	collectErrors = true
	#If collectErrors is 'false', backups with errors will be deleted immediately to prevent deleting valid backups.
	deleteUnfinishedBackup = true
