Skip to content
/SLASHPLAY

How to save server settings in Rust

Type server.writecfg in the server console to write the current settings, owners, moderators and bans to the config files.

server.writecfg

Writes the current settings, owners, moderators and bans to the server's config files.

server.writecfg

Examples

server.writecfg

Persist the current configuration.

What it does

Saves changeable server convars to server/<identity>/cfg/server.cfg, and the admin and ban lists to users.cfg and bans.cfg in the same folder. Run it after you change settings or add an owner, moderator or ban in the console, otherwise those changes can be lost on restart.

The game's own description: Writes config files

Good to know

  • Values set on the launch line are applied at every start and can override what is in server.cfg.

Run it on your server

Type it in the server console or send it over RCON; admins can also use the F1 console in game. To keep a setting, run server.writecfg after changing it, or put it on the launch line as +name value.

Your own
game server.

CS2, Minecraft, Palworld and more, from $0.03 an hour.