AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Tool: Bulk FTP/SFTP uploader script for servers, with rcon support (https://forums.alliedmods.net/showthread.php?t=311758)

AI_ 11-01-2018 08:27

Tool: Bulk FTP/SFTP uploader script for servers, with rcon support
 
Here's a simple Python auto uploading script for server managers to use with multiple servers:

https://github.com/geominorai/srcds-upload

It's useful if you have many servers, especially when running different game modes, and want to upload files to a subset of them at the same time. This also auto loads plugins after uploading them, and you can also manually send rcon commands to each one.

AI_ 09-17-2020 03:14

Re: Tool: Bulk FTP/SFTP uploader script for servers, with rcon support
 
I added a script to the repo to also automate text file editing. This means you can easily edit convars in server.cfg or add a map to mapcycle.txt and sort it without having to download the file manually first, even if you use the uploading script to deploy it to all servers.

Quote:

Edit Operations
  • Backup - Create a backup of the specified file. backup variable at the bottom must be set to True
  • Print - Dump the contents of the text file to console.
  • Sort - Sorts the lines in the text file alphabetically (without blank lines).
  • Find - Search the text file with regex search
  • FindDuplicates - Search the text file with regex search and remove subsequent lines with duplicate matches.
  • Insert - Insert a line into the text file relative to regex after, before, or at the end of the file if neither are specified.
  • Replace - Replace a line in the text file matching regex search with replace (regex capture groups permitted)
  • Delete - Delete a line in the text file matching regex search
  • All edit operations support failover of another Edit Operation and rcon for rcon commands (string or list of strings)


RealEdan 09-17-2020 05:34

Re: Tool: Bulk FTP/SFTP uploader script for servers, with rcon support
 
Been using this on our network w/ 40+ unique game servers and over 7 gamemodes, soon to be 10. Script has been great for the past year I've been using it. Super excited to use the new file editor :)

Thanks AI!


All times are GMT -4. The time now is 21:00.

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