LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[Rust] Wipe command needs update

Open UltimateByte opened this issue 8 years ago • 5 comments

It appears according to feedback that Rust changed their files naming again, so... A rework will need to be done to the wipe command.

Quote from Discord:

AkalaHD - Today at 6:36 PM @lumpa Delete these files manually: proceduralmap.3000.2268374.158.map proceduralmap.3000.2268374.158.sav sv.files.db or sv.files.0.db player.deaths.db And if you’re wiping BPs delete player.blueprints.db

I don’t know if you need to delete sv.files.db and player.deaths.db

These can all be found in this directory: /home/rustserver/serverfiles/server/rustserver/ The wipe command should work for the map files Deleting sv.files.db and player.deaths.db won’t do anything as far as I know. I usually just delete them. An update to the command to delete these automatically would be nice Im sure it’s on the way

UltimateByte avatar Mar 05 '18 21:03 UltimateByte

Many (if not most) rust admins wipe the map many times before they wipe blueprints. Previous behavior with wipe was to wipe just the map, and bps were something that needed to be done manually.

A "wipe-all" command, which wipes both would be nice but after a brief skim of the code a whole new command file might need to be implemented to keep consistency.

Whatever is done I don't think BPs should be included in the "wipe" command. If bps are included in wipe, this would be a change in functionality of the command and would probably result in data being deleted that the server admins don't expect. This would be a very facepunch-esque thing to do and should be avoided imo.

sregister avatar Mar 17 '18 17:03 sregister

Why not! Do you have a clear proposition of what commands to have and what they should wipe? I'm not really into Rust anymore, so any advice is welcome. Also, if you can confirm which files contain which information, you'll highly simplify my work.

UltimateByte avatar Mar 17 '18 17:03 UltimateByte

I think this should do it.

wipe command:

  • rm /home/rustserver/serverfiles/server/rustserver/proceduralmap.*.map
  • rm /home/rustserver/serverfiles/server/rustserver/proceduralmap.*.sav
  • rm /home/rustserver/serverfiles/server/rustserver/player.deaths.*.db (if exists)
  • rm /home/rustserver/serverfiles/server/rustserver/sv.files.*.db (if exists)

wipe-all:

  • all files above
  • rm /home/rustserver/serverfiles/server/rustserver/player.blueprints.*.db (if exists)

sregister avatar Mar 17 '18 17:03 sregister

This is now done and works like a charm. Will be up for the next release.

UltimateByte avatar Jul 21 '18 12:07 UltimateByte

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jul 21 '19 16:07 lock[bot]