How to back up and restore a Minecraft server
Back up before you change versions or add mods, and you can roll the server back to that point if something breaks. You can create backups in vPanel by hand or on a schedule, or download the world to your own computer.
Types of backup
There are three ways to keep a copy of a Minecraft server. They differ in who creates the copy and whether you can restore it yourself.
-
Your own download
- How it is made
- Compress and download, or use SFTP
- How often
- Whenever you need one
- How to restore
- Upload it back to the server
- Cost
- No extra charge
-
Local backup
- How it is made
- By hand in vPanel
- How often
- Any time, or on a schedule
- How to restore
- Pick one under Backups and restore it
- Cost
- Add-on, NT$50/mo for one
-
Weekly off-site backup
- How it is made
- Automatically
- How often
- Once a week
- How to restore
- For data center failures only, restore not guaranteed
- Cost
- Included
Of the three, local backups are the only ones you can restore yourself in vPanel. For any world that matters, don’t rely on the off-site backup alone and keep a copy of your own.
Local backups are an add-on, and Minecraft servers come with none by default. With no backup slots, the Backups page in vPanel can’t create a backup. Plans in Taiwan and Singapore (except Taiwan High-end) can add up to 5, chosen under local backups when you order.
Create a backup in vPanel
- Open Backups
Click Backups at the top of the server page. The top of the page shows how many backup slots you have used.
- Name it
The name is optional. Something like “before 26.3” makes the backup easier to find when you need to restore.
- List files to skip
In the ignored files box, enter one file or folder per line that you don’t want backed up, such as
logs/. Leave it empty to use the default exclusion rules. - Create the backup
Click the create button. The server can keep running while it backs up. When it finishes, the backup appears in the list with its size and creation time.
When every slot is used, delete an old backup before you create a new one. Lock the backup you want to keep and it can’t be deleted or replaced by a newer backup. The download button in the list saves a backup to your computer, which gives you one more copy of your own.
Restore a backup
Find the backup you want in the list and click restore. Restoring returns the server to the state it was in when the backup was made, so anything players built or collected after that is gone.
The confirmation window warns that the current files will be overwritten by the backup. If you tick the option to delete all files on the server first, the server is emptied before the restore, and files added after the backup don’t survive either. To keep the current world as well, create a fresh backup before you restore. If you have no free slot, download the world first.
Scheduled backups
A schedule can create a backup at a set time, for example 4 a.m. every day. A scheduled backup is a local backup too, so the server needs backup slots.
- Add a schedule
On the Schedules tab, add a new schedule and give it a name, such as “Daily backup”.
- Pick the frequency and time
Choose daily or weekly, then set the time. Times are in Taipei time (UTC+8), and you can add more than one time per day. For finer control, switch the frequency to advanced and write a Cron expression.
- Run only while the server is online
Turn on the option to run only while the server is online, and the schedule skips times when the server is off. Nothing changes in the world while it is off, so this saves you from storing identical backups.
- Add a backup task
After you save the schedule, add a task under it, set the action to create a backup, and save.
- Test it once
Run the schedule now as a test, then check that a new backup appears under Backups.
You can add a second task to the same schedule. Set the action to a power action, choose Restart and enter a delay of 300 seconds, and the server restarts 5 minutes after the backup finishes. The new vPanel also has schedule templates. Pick the daily backup template, set a time, and the schedule is created for you.
Download the world to your computer
Without local backups, or to keep a copy on your own computer, download the world folder. Stop the server first, because the world files don’t change while it is off and the copy is complete.
- Stop the server
Click Stop in the Console and wait until the server has shut down.
- Select the world folders
In Files, tick the world folders. A vanilla server has only
world, while plugin servers such as Paper on 1.21.11 or earlier also haveworld_netherandworld_the_end. Plugin settings and data live inplugins, so tick that too if you want to keep them. - Compress and download
Compress the selected items. The server creates a .tar.gz file, like the highlighted row in the screenshot at the top of this guide, and the download button next to it saves the file to your computer. Windows 10/11 and macOS can open .tar.gz files.
- Delete the archive and start the server
Once the download is done, delete the archive on the server so it doesn’t take up your plan’s storage, then start the server from the Console.
Without stopping the server (Java Edition)
When players are online and you would rather not stop the server, pause world saving first. Enter these two commands in the Console, in this order.
save-off
save-all flushsave-off stops the server from writing to the world files and holds changes until saving resumes. save-all flush writes every unsaved chunk to disk right away. Then compress and download the folders as in steps 2 and 3. When the download is done, turn saving back on with this command.
save-onThese commands only exist on Java Edition servers. On a Bedrock server, stop the server before you download. For a large world, drag the folder to your computer over SFTP (Chinese docs). In the new vPanel, Download the world packs the whole world into one file as well.