lenosisnickerboa / csgosl

A CSGO server launcher, one-click install & run
GNU General Public License v3.0
378 stars 39 forks source link

Possibility of making a backup? #148

Open viper2097 opened 6 years ago

viper2097 commented 6 years ago

Is there a possibility of making a backup of my whole configured server? Including maps, gamemodes, settings etc.? So far I just copy the whole folder to my backup drive, but thats a lot of GB's...

Thank you in advance.

lenosisnickerboa commented 6 years ago

Just added and tested a simple backup method, see this description Backup a server. Try it out and get back with your feedback.

viper2097 commented 6 years ago

Hello, just tried it. Made a complete backup and then delted just the two folders in my installation.

Result: My workshop maps are still in the dropdown list at the run tab, but when I start a server I only get error messages: unbenannt Also the maps are missing in the "maps"tab. However, my mapgroups are correct.

Also my custom setup of the "classic competive" tab is completely missing (standard values now).

Sorry, seems not to work.

Maybe because my custom "classic competive" settings are saved under "csgosl/server/csgo/cfg/gamemode_competitive_server.cfg"? And my map paths are are saved under "csgosl/server/csgo/gamemodes_server.txt"?

lenosisnickerboa commented 6 years ago

Thanks for getting back with feedback and sorry for not replying sooner, csgo(sl) is currently not on the top of the priority list :( Completely forgot about the workshop maps, if you redownload them manually (or just the one mentioned in the trace McDonalds*) does the server start properly? I'm aware all your workshop maps will have to be redownloaded manually, but apart from that, does the rest work?

I will update the wiki and mention workshop maps. If this is the only problem with the suggested backup method I will look into how to automatically redownload the workshop maps.

viper2097 commented 6 years ago

Good morning, no problem at all, since it is not an important topic, however, it still would be nice to find a solution for the future. I have not tried it, but I think it should work as it should when downloading the workshop maps manualy. But there the problems start, it is not that easy to download a workshop map, you can only subscribe to it on steam. Also, I have 27 maps (growing) on my server, so this would be a pain in the as* to add them manualy. Of course, maybe you can set it up that the workshop maps will be downloaded once the server is started? However, it would be easier to include them in a backup.

Also you forgot about the custom setup of the game types. My setup for Classic_Competive is also missing because it is located in csgosl/server/csgo/cfg/gamemode_competitive_server.cfg

My sugesstion would be: You know which files are touched by CSGOSL, would it not be possible to write a small app that backups all these files and and also restores it if needed?

lenosisnickerboa commented 6 years ago

Sure, it's just a matter of time :) Time which I don't have. Also, having a separate backup app being aware of which files csgosl touches might be a problem since it would have to be in sync with every csgosl change. It's not hard, just one more thing to remember.

Having said that, the probability of a full fledged backup solution may not be very close :) But I will consider it. Perhaps the way to go is to have csgosl generate a list of files/folders it touches and have the backup app use that list when backing up. This way your custom setup and the workshop maps would be included in the backup. Stay tuned...