FTB Backups 2

FTB Backups 2

16M Downloads

Add option for backup file path

sprocketaudio opened this issue ยท 5 comments

commented

This used to exist in FTBbackps.

Please can we get a config option to allow us to change the absolute path of the backup location?

commented

This would be fantastic

commented

Linking to an open issue on the FTB issues main page which contains the following:

Modpack

Any that use this mod

Is your suggestion related to a problem? Please describe.

N/A

Mod suggestion

https://github.com/FTBTeam/FTB-Backups

Currently the config is the following:

{
        // Allow the creation of backups automatically
	"enabled": true,
	// Permission level to use the /backup command
	"command_permission_level": 3,
	// Only send backup status to server ops
	"notify_op_only": true,
	// Don't send backup status at all
	"do_not_notify": false,
	// Maximum number of backups to keep
	"max_backups": 48,
	/* This is done with Javas implementation of cron, More info here 
	    (https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm)
	*/
	"backup_cron": "0 */30 * * * ?",
	// Time between manual backups using the command
	"manual_backups_time": 0,
	// Only run a backup if a player has been online since the last backup
	"only_if_players_been_online": true,
	// Additional directories to include in backup
	"additional_directories": []
} 

This suggestion would be to add the line below to control backupsFolder in the Backups enum in src/main/java/com/feed_the_beast/mods/ftbbackups/Backups.java. Currently this is hardcoded as

backupsFolder = FTBBackupsConfig.folder.trim().isEmpty() ? FMLPaths.GAMEDIR.get().resolve("backups").toFile() : new File(FTBBackupsConfig.folder);`

Suggested change to config:

// The path where backups will be saved
"backupsFolder": "./backups"
commented
commented

Any news for this ?
Ma SSD is full, and, i like to backup on another location :'(

commented

Added in 1.0.16