Raised This Month: $119 Target: $400
 29% 

Tool: Bulk FTP/SFTP uploader script for servers, with rcon support


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AI_
Member
Join Date: Oct 2014
Location: Canada
Old 11-01-2018 , 09:27   Tool: Bulk FTP/SFTP uploader script for servers, with rcon support
Reply With Quote #1

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.
__________________

Last edited by AI_; 11-05-2018 at 15:40.
AI_ is offline
AI_
Member
Join Date: Oct 2014
Location: Canada
Old 09-17-2020 , 04:14   Re: Tool: Bulk FTP/SFTP uploader script for servers, with rcon support
Reply With Quote #2

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)
__________________

Last edited by AI_; 09-17-2020 at 04:15.
AI_ is offline
RealEdan
Member
Join Date: Dec 2016
Location: United States
Old 09-17-2020 , 06:34   Re: Tool: Bulk FTP/SFTP uploader script for servers, with rcon support
Reply With Quote #3

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!
__________________
RealEdan is offline
Reply


Thread Tools
Display Modes

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 18:56.


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