Raised This Month: $32 Target: $400
 8% 

Prevent steamCMD from re-downloading delet maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mikado
Senior Member
Join Date: Nov 2012
Location: don't know where :/
Old 04-17-2020 , 11:41   Prevent steamCMD from re-downloading delet maps
Reply With Quote #1

Hello guys,

I was wondering if there is a way to prevent SteamCMD from redownloading deleted maps on every update, i have a limited amount of space 30Gb ( running with debian + CSGO Server ) i delet everytime maps like gb_, dz_, ar_ .... to gain some space but it keeps re-downloading on each update and mostly fail the update due to lack of storage.
Mikado is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-17-2020 , 11:44   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #2

If you got root, you can create empty files and make the immutable after deleting them:

Code:
touch de_dust2.bsp
chattr +i de_dust2.bsp
You won't even be able to delete them yourself, unless you first, through root, is removing the flag again with:

Code:
chattr -i de_dust2.bsp
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 04-17-2020 , 11:47   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #3

No but you can download the updates from a different source or create empty files and make them write protected.
But the best solution would be to simply upgrade your server storage.

Last edited by TomL.; 04-17-2020 at 11:49.
TomL. is offline
Mikado
Senior Member
Join Date: Nov 2012
Location: don't know where :/
Old 04-17-2020 , 11:48   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #4

Will try it, but doesn't SteamCMD check the size ?

Cuz touch de_dust2.bsp makes a 0Kb file
Mikado is offline
Mikado
Senior Member
Join Date: Nov 2012
Location: don't know where :/
Old 04-17-2020 , 12:11   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #5

The empty files solution didn't work, SteamCMD keeps on downloading the maps on the temp folder, that causes the update to fail due to insufficiant storage space.

Which different sources you talking about, can i get links please ?
Mikado is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 04-17-2020 , 12:16   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #6

There was a website you could download the files of.
TomL. is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-17-2020 , 12:17   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #7

"chattr +i" will make it immutable, meaning that no one (not even root) can remove it again, unless you remove the "i" flag again:

Code:
root@server:~# touch /tmp/fancy_map.bsp
root@server:~# chattr +i /tmp/fancy_map.bsp
root@server:~# rm /tmp/fancy_map.bsp
rm: cannot remove '/tmp/fancy_map.bsp': Operation not permitted
root@server:~# rm --force /tmp/fancy_map.bsp
rm: cannot remove '/tmp/fancy_map.bsp': Operation not permitted
root@server:~# chattr -i /tmp/fancy_map.bsp
root@server:~# rm /tmp/fancy_map.bsp
root@server:~#
Quote:
Originally Posted by Mikado View Post
The empty files solution didn't work, [...]
Not alone, no... CHATTR?

Quote:
Originally Posted by Mikado View Post
Which different sources you talking about, can i get links please ?
If you aren't deciding to read or follow what you are told 100%, links will not be able to help you either.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Mikado
Senior Member
Join Date: Nov 2012
Location: don't know where :/
Old 04-17-2020 , 12:26   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #8

Can i get a link, please ?

The empty files solution didn't work steamcmd keeps on downloading the maps on the steamapps folder, so it's stops and fails the update when the storage is at 100% .

And i want to keep the upgrade solution as last hope, cuz my provider NVMe storage costs a lot :S
Mikado is offline
Mikado
Senior Member
Join Date: Nov 2012
Location: don't know where :/
Old 04-17-2020 , 12:30   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #9

@DarkDeviL Sorry, didn't try it on the temp folder, did it on the csgo/maps one, will try it again, but this time on the temp folder
Mikado is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 04-17-2020 , 13:05   Re: Prevent steamCMD from re-downloading delet maps
Reply With Quote #10

You want to do it both for the temp and actual game server files.
I don't remember the name or ever used it myself but if you have another server with enough space you can get the updates from there.
TomL. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode