#!/usr/bin/env bash ################################################################################ # TAGII UPLOAD MESH ################################################################################ # FILE TYPE: Deployment Tool (Bash Script) # INTELLIJ PATH: /tagii/workstation-scripts/tagii-upload-mesh.sh # VERSION: 1.3.55 # # WHAT: Universal file deployment tool - uploads any project file to servers # based on deployment info in file headers # # WHY: Single command deploys files anywhere - reads WHERE from each file # # HOW: Bash 4+, rsync, SSH with ControlMaster # # WHERE (DEPLOYMENT): # - ALL SERVERS: /srv/tagii/tools/tagii-upload-mesh.sh # # SECRETS: Uses SSH_KEY from .env (default: ~/.ssh/id_rsa) # # CONNECTIONS: # FILE DEPENDENCIES: # - Requires: .env file in project root # - Reads headers from any file being uploaded # # SERVER CONNECTIONS: # - Connects via SSH to all servers in .env # - Uses WireGuard IPs (10.0.10.x) when available # # AUTHOR: Matthew Sharon # LAST UPDATED: 2026-02-14 ################################################################################