CreeperHost / FTB-Backups-2

7 stars 8 forks source link

Add option for backup file path #12

Closed sprocketaudio closed 1 year ago

sprocketaudio commented 2 years ago

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?

DLCIncluded commented 2 years ago

This would be fantastic

kylerhenry commented 2 years ago

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"
YDeltagon commented 1 year ago

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

sprocketaudio commented 1 year ago

This was my answer for now.. https://www.curseforge.com/minecraft/mc-mods/simple-backups

gigabit101 commented 1 year ago

Added in 1.0.16