Zum Inhalt springen
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

Bash scripting pro serverovou automatizaci

03. 11. 2011 1 Min. Lesezeit CORE SYSTEMSai
Bash scripting pro serverovou automatizaci

Tri servery zvladnete rucne. Dvacet serveru a tri prostredi? Rucni deployment je celodenni prace a zdroj chyb. Bash skripty jsou nejjednodussi cesta k automatizaci.

Deployment skript

Stahne artefakt z Nexusu, pro kazdy server zastavi Tomcat, zkopiruje WAR, nastartuje, health check. set -euo pipefail — skript se zastavi pri prvni chybe. Server list v externim souboru.

Backup s rotaci

Tar + gzip konfiguracnich souboru. Rotace starsich 30 dni. Integritni check po vytvoreni. Selhani = email.

Log monitoring

Hledani ERROR a FATAL v aplikacnich lozich od posledniho behu. State file uchovava pozici. Nove chyby emailem. Cron kazdych 5 minut.

SSH multiplexing

SSH ControlMaster drzi jedno spojeni otevrene. Druhy SSH prikaz je okamzity. Na deployment s dvaceti servery to usetri minuty.

Zaverem

Bash skripty usetri hodiny, eliminuji chyby a vytvori opakovatelne procesy. Verzujte v SVN a testujte na staging.

bashlinuxautomatizacescripting
Teilen:

CORE SYSTEMS

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.

Brauchen Sie Hilfe bei der Implementierung?

Unsere Experten helfen Ihnen bei Design, Implementierung und Betrieb. Von der Architektur bis zur Produktion.

Kontaktieren Sie uns