You can use this application to synchronize all your addon resources and all maps to your FastDL directory. All files will be compressed with BZip2.
This will only work if your gmod- and webserver are on the same machine. There is no support for FTP.
Requirements
Usage
Execute the following command to run the application:
dotnet GmodResourceSync.dll <PathToGmod> <PathToFastDL> <PathTo7Zip> [<Force>]
Examples:
Windows:
dotnet GmodResourceSync.dll "C:\servers tt-01\garrysmod" "C:\www\fastdownload" "C:\Program Files\7-Zip\7z.exe"
dotnet GmodResourceSync.dll "C:\servers tt-01\garrysmod" "C:\www\fastdownload" "C:\Program Files\7-Zip\7z.exe" force
Linux:
dotnet GmodResourceSync.dll "/servers/ttt-01/garrysmod" "/www/fastdownload" "7z"
dotnet GmodResourceSync.dll "/servers/ttt-01/garrysmod" "/www/fastdownload" "7z" force
Adding “force” will force to sync and compress all resources again, even if they already exist in the FastDownload directory.
The application will crash if something is wrong.
Supported directories
garrysmod/addons/.../materials
garrysmod/addons/.../models
garrysmod/addons/.../resource
garrysmod/addons/.../sound
garrysmod/addons/.../particles
garrysmod/addons/.../maps
garrysmod/maps/*.bsp
garrysmod/maps/graphs/*.ain
Download
GitHub: https://github.com/ibot3/GmodResourceSync