SRCDS Steam group


[Solved]Compressing lots of files
#1
Hey guys!

I'm going to upload some garrysmod files to my sv_downloadurl, and it is _ALOT_ of files and folders. I want to compress them to bzip2, but I can't find an effective way to do this. You have to like compress each file one by one.

Is there any faster way, to like compress the files singlehandedly, without touching the folders.
Like if I want to compress all the files in models it would look like this:
models/file1.vtf.bzip2
models/file2.mdl.bzip2
models/player/file3.mdl.bzip2

If you catch my drift Toungue

Ty for this, solved my problem
Quote:You can try SourceRSC
"SourceRSC can update your fast download server automatically. If custom content is misisng from the fast download server it will bzip the files, create the appropriate folder structure, and properly 'virtualize' the addons and gamemodes folders on the fast download server. Supports accessing the game and fastdownload server locally or with FTP. Works on Windows and Linux. " -Gmod Wiki

And here`s some more info about fastdl for Gmod http://wiki.garrysmod.com/?title=Setting...ownloadurl[/url][/b]
Reply
#2
You can try SourceRSC
"SourceRSC can update your fast download server automatically. If custom content is misisng from the fast download server it will bzip the files, create the appropriate folder structure, and properly 'virtualize' the addons and gamemodes folders on the fast download server. Supports accessing the game and fastdownload server locally or with FTP. Works on Windows and Linux. " -Gmod Wiki

And here`s some more info about fastdl for Gmod http://wiki.garrysmod.com/?title=Setting_up_sv_downloadurl
Reply
#3
on linux it's quite simple:
Code:
find -exec bzip2 -k \{\} \;
will compress every file in your current directory including all subdirectories. ("-k" is for keeping the original file, if you don't want them, you can omit the -k so the uncompressed files get deleted after compression).
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#4
Thanks guys! Im using the SourceRSC and uploading as we speak! Tyvm
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)