Automatically back up the world by default
Backups run every 10 minutes for up to 4 hours of backups to prevent against accidental data loss.
This commit is contained in:
parent
d7bc4fdbda
commit
39147355c1
2 changed files with 3 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* TShock now writes its log files to the `logs` folder inside the `tshock` folder by default, as opposed to just the `tshock` folder. (@QuiCM)
|
||||
* The default MOTD is now prettier. The MOTD format can now contain `%specifier%` to send the command specifier. (@moisterrific)
|
||||
* The buff commands now support `-1` as a time option to set buffs that last 415 days (the maximum buff time the game supports). (@moisterrific)
|
||||
* TShock defaults to saving backups every 10 minutes, and defaults to keeping backups for 4 hours. (@hakusaro)
|
||||
|
||||
## TShock 4.5.2
|
||||
* Added preliminary support for Terraria 1.4.2.2. (@hakusaro)
|
||||
|
|
|
|||
|
|
@ -93,11 +93,11 @@ namespace TShockAPI
|
|||
|
||||
/// <summary>The interval between backups, in minutes. Backups are stored in the tshock/backups folder.</summary>
|
||||
[Description("The interval between backups, in minutes. Backups are stored in the tshock/backups folder.")]
|
||||
public int BackupInterval;
|
||||
public int BackupInterval = 10;
|
||||
|
||||
/// <summary>For how long backups are kept in minutes.</summary>
|
||||
[Description("For how long backups are kept in minutes.\neg. 2880 = 2 days.")]
|
||||
public int BackupKeepFor = 60;
|
||||
public int BackupKeepFor = 240;
|
||||
|
||||
/// <summary>Whether or not to save the world if the server crashes from an unhandled exception.</summary>
|
||||
[Description("Whether or not to save the world if the server crashes from an unhandled exception.")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue