Auto-Save

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Staxed

New Member
Jul 29, 2019
1,019
-2
0
How do most of you implement autosaves?

I just had an issue where my vm instance cold crashed...and rolled back the server about 5-6 hours...I need to get an auto-save running every 15 minutes or so. Never done it on ftb so figured I'd see what method most people use before I dig into it more.
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
ForgeBackup.

Highly configurable. I make backups every 15 minutes and keep 12 hours worth of those. Every 12 hours I create a backup and I keep 14 of the those. Every 7 days I make a backup and 4 of those are kept.

So basically if something happens I have 1 month worth of backups and if I notice I need to use a backup within 12 hours, I only lose 15 minutes of server uptime.

http://www.minecraftforge.net/forum/index.php?topic=4606.0
 
  • Like
Reactions: Staxed

pherce

New Member
Jul 29, 2019
60
0
0
Rdiff is the only way to go on unix. You can save as often as you please and you can restore a single file from any restore point instead of dealing with massive zips. Not only is it fast, it saves you way more space because it's differential backups. There is no need to keep saving your spawn, spleef arena, or Eiffel Tower every 15 minutes if it never changes.
 
  • Like
Reactions: Staxed

Staxed

New Member
Jul 29, 2019
1,019
-2
0
While I certainly appreciate the responses, I'm not looking for a way to auto-backup, I'm looking for the best way to autosave (autosave /= backup).

As in...automatically issuing the save-all command every 10-15 minutes.
 

pherce

New Member
Jul 29, 2019
60
0
0
Cronjob onto Screen.

*/15 * * * * /your/script/location.sh


Code:
#! /bin/bash
screen -x ftb -X stuff "save-all $(echo -ne '\r')"
exit
ftb is the Screen name in this case and it is saved every 15 minutes.

Also make sure you chmod +x the script.
 

Smithnc07

New Member
Jul 29, 2019
4
0
0
By Chance are you running MCPC+? If so, then what you might be experiencing is how the bukkit side of things has turned off saving.
Copied from:http://wiki.bukkit.org/Bukkit.yml#autosave
autosave

This bukkit.yml setting allows servers to set the number of ticks for each save-all event.
Example Usage:
  • A value of 1 will mean the server will attempt to autosave the world every tick.
  • A value of 6000 will mean the server will attempt to autosave the world every 5 minutes.
  • A value below 0 will be reset back to Bukkit's default.
Minecraft default: 6000.
Bukkit default: 0.
Note: Many Bukkit servers already run autosave plugins which generate save-all tasks, thus it was decided to disable this feature in Bukkit, as the Minecraft default setting was causing a lot of lag for many servers, and was found redundant. If you wish to enable this, remember the setting is per tick, and thus should be set to a reasonably high number (6000 = 5 minutes at peak server efficiency).