Skip to main content

Configuring

FTB Backups 2 can be configured by opening the ftbbackups2.json located in the config folder of the modpack.

Configuration options

NameDescriptionDefault value
autoAllow the creation of backups automaticallytrue
command_permission_levelPermission level to use the /backup command (0-4)3
notify_op_onlyOnly send backup status to server opstrue
do_not_notifyDon't send backup status at allfalse
retention_modeBackup retention mode. Valid Modes:
  • MAX_BACKUPS
  • TIERED
Note: TIERED mode is an experimental and unsupported feature, Use at your own risk.
MAX_BACKUPS
max_backupsSets the maximum number of backups to keep, only applies when retention_mode is set to MAX_BACKUPS5
keep_latestThe latest x number of backups will be retained, only applies when retention_mode is set to TIERED5
keep_hourlySets number of hourly backups to keep, only applies when retention_mode is set to TIERED1
keep_dailySets number of daily backups to keep, only applies when retention_mode is set to TIERED1
keep_weeklySets number of weekly backups to keep, only applies when retention_mode is set to TIERED1
keep_monthlySets number of monthly backups to keep, only applies when retention_mode is set to TIERED1
backup_cronHow frequently backups should be taken, this uses the Quartz cron format, for more information go here0 */30 * * * ?
manual_backups_timeTime between manual backups using the command, prevents spamming the backup command0
only_if_players_been_onlineOnly run a backup if a player has been online since the last backuptrue
additional_directoriesAdditional folder/directories to include in backup[]
additional_filesAdditional files and directories to include in backup. Can specify a file name, path relative to server directory or wildcard file path
Examples: - All file paths are relative to server root)
fileName.txt - Any/all file named "fileName.txt"
folder/file.txt - Exact file path
folder/ - Everything in this folder
path/starts/with* - Any files who's path starts with
*path/ends/with.txt - Any files who's path ends with
*path/contains* - Any files who's path contains
[]
display_file_sizeDisplays the backup file size in the backup messagefalse
backup_locationWhere the backup folder containing the backups should be located, relative to the server.
backup_formatSpecify the backup format. Valid options are ZIP and DIRECTORYZIP
minimum_free_spaceMinimum free disk space in MB. If a backup's creation would leave less than this amount of disk space remaining, the backup will be aborted.500
free_space_if_neededIf the previous backup failed due to lack of space, the oldest backup will be deleted to free space.false
excludedSpecify files or folders to be excluded. Can specify a file name, path relative to server directory or wildcard file path
Examples: - All file paths are relative to server root)
fileName.txt - Any/all file named "fileName.txt"
folder/file.txt - Exact file path
folder/ - Everything in this folder
path/starts/with* - Any files who's path starts with
*path/ends/with.txt - Any files who's path ends with
*path/contains* - Any files who's path contains
[]
preview_dimensionThe dimension used when creating backup preview image, specify "all" to enable automatic detection of primary dimension (can be very slow)
Specify "none" to disable preview
minecraft:overworld

Cron examples

The cron format used is the Quartz cron format, you can find more information and examples here: https://www.quartz-scheduler.net/documentation/quartz-3.x/tutorial/crontrigger.html#examples

The format is as follows:

s  i  h dom m dow y  
⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜
'--+--+--+--+--+--+--> 1st: seconds
'--+--+--+--+--+--> 2nd: minutes
'--+--+--+--+--> 3rd: hours
'--+--+--+--> 4th: days of month ---\
'--+--+--> 5th: months | mutually exclusive
'--+--> 6th: days of week ---/
'--> 7th: years