I run a private forge 16.5 server, a few datapacks (vanilla tweaks) and a few building mods (like WorldEdit), but nothing that messes with MC game mechanics in a major way. This is basically just for me and my daughter, and whoever we want to showcase our world. Server is running only if we need it.
I created a simple backup script that runs once a day and zips the whole server directory, with a bit of safety net to keep backups for a few days. This works perfectly fine if the backup script runs when the server is down. However, yesterday I had the server running while the backup was created, and just for fun restored the backup and checked it out. Instead of loading our world, the server would start all over with world creation and place me in a freshly generated world (with the same spawn). (The same happened when I copied the world directory into a singleplayer world.)
Now, obviously this has got me a bit scared. Can I backup my server when it's running? If not, what would be the way to fix this - switch to some external software like Bukkit?
I run a private forge 16.5 server, a few datapacks (vanilla tweaks) and a few building mods (like WorldEdit), but nothing that messes with MC game mechanics in a major way. This is basically just for me and my daughter, and whoever we want to showcase our world. Server is running only if we need it.
I created a simple backup script that runs once a day and zips the whole server directory, with a bit of safety net to keep backups for a few days. This works perfectly fine if the backup script runs when the server is down. However, yesterday I had the server running while the backup was created, and just for fun restored the backup and checked it out. Instead of loading our world, the server would start all over with world creation and place me in a freshly generated world (with the same spawn). (The same happened when I copied the world directory into a singleplayer world.)
Now, obviously this has got me a bit scared. Can I backup my server when it's running? If not, what would be the way to fix this - switch to some external software like Bukkit?
Then you will need backup-plugins
So in this case craftbukkit, spigot or paper are recommended
You can take a look at
ServerRestorer:
https://www.spigotmc.org/resources/serverrestorer.48853/
or
eBackup:
https://www.spigotmc.org/resources/ebackup-simple-and-reliable-backups-for-your-server-supports-ftp-sftp.69917/