Set up automatic RCON/Console commands on your Unturned server with a scheduled task in the GTX game panel, for example a Save command 5 minutes before every restart so no progress is lost.

You need a restart task first. No restart schedule yet? Set one up with How to set up automatic server restarts, then come back here.

How to set up automatic RCON/Console commands

  1. Go to the Scheduled Tasks tab (Schedule Tasks) in your control panel.
  2. Create a new scheduled task and select the Console/RCON command option.
  3. Type your RCON password. You can get it from the Server Details button.
  4. In the Command to Execute box, type: Save
  5. Give it a name of your choice, for example 5 Minutes Save Before Restart.
  6. Select the date / hour you want the Save command to perform. For a 5 minute save before restarting, for example, select 5 minutes before your restart scheduled task.
  7. Select Recur Every 1 Days.
  8. Select the Repeat task option.
  9. Select Repeat Every 12 hours if your restart scheduled task is set to every 12 hours. If not, adjust it to stay synced with your restart task time.
  10. Select For 24 Hours.
  11. Select the Script Parameters tab at the top and change the restart message if you want.
  12. Save the task.

How the example works

In this example a save is performed 5 minutes before the restart scheduled task, every 12 hours. If you want the save at any other time, or your restart task is set to another hour, just adapt the times.

You can use any Unturned console command, as long as it's supported by Unturned. Put a different command in Command to Execute and create one task per command.

Want players warned too? Follow How to set up automatic restart messages to add a scheduled Say message before each restart.

Automatic RCON command questions

How do I set up automatic RCON/Console commands on Unturned?

In Scheduled Tasks, create a Console/RCON command task, enter your RCON password and the command (for example Save) in Command to Execute, pick the start time, then set it to recur every 1 days and repeat every 12 hours for 24 hours. Save the task.

Where do I find my RCON password?

Press the Server Details button in the game panel. The RCON password is listed there.

Why run Save before a restart?

The Save command writes the world and player progress to disk. Running it a few minutes before each restart makes sure the latest progress is stored before the server stops.

Want your own Unturned server? See Unturned server hosting.

Related guides

If you have any questions or need our help, don't hesitate to contact us. Our support team is available 24/7: Open a support ticket.

Was this answer helpful? 0 Users Found This Useful (6 Votes)