Tag

shell script

1 views collected around this technical thread.

IT Xianyu
IT Xianyu
Jun 4, 2025 · Databases

Comprehensive Guide to Automated MySQL Backup and Restore with Docker

This article provides a step‑by‑step tutorial for DBAs to design a reliable MySQL backup strategy, write a Bash automation script, schedule it with cron, and perform restoration drills using Docker containers, while covering directory planning, command checks, cleanup, and common troubleshooting.

AutomationBackupCron
0 likes · 17 min read
Comprehensive Guide to Automated MySQL Backup and Restore with Docker
IT Xianyu
IT Xianyu
May 27, 2025 · Databases

Automated MySQL Backup Script with Docker and Crontab

This guide explains how to set up an automated MySQL backup solution on AlmaLinux using Docker containers, a Bash script, and crontab, covering environment preparation, script creation, command checks, logging, error handling, and optional enhancements such as email notifications and security best practices.

AutomationBackupDocker
0 likes · 7 min read
Automated MySQL Backup Script with Docker and Crontab
IT Xianyu
IT Xianyu
May 14, 2025 · Databases

Using PostgreSQL Stored Procedures to Batch Update User Tags Efficiently

This article explains how Java developers can replace thousands of individual UPDATE statements with a single PostgreSQL stored procedure call, covering the motivation, procedure creation, Java invocation, scheduling with shell scripts, performance benchmarks, and common pitfalls.

Batch UpdatePerformancePostgreSQL
0 likes · 8 min read
Using PostgreSQL Stored Procedures to Batch Update User Tags Efficiently
Test Development Learning Exchange
Test Development Learning Exchange
Apr 24, 2025 · Databases

Using SQLite Databases and Advanced ADB Commands on Android

This guide explains how to access Android SQLite databases via adb shell sqlite3, create and run complex shell scripts, and manage app permissions and users through ADB commands, providing practical examples for debugging and automation.

ADBAndroidDatabase
0 likes · 5 min read
Using SQLite Databases and Advanced ADB Commands on Android
Raymond Ops
Raymond Ops
Mar 27, 2025 · Operations

All-in-One Linux Init Scripts for Rocky, AlmaLinux, CentOS, Ubuntu & More

This article introduces a comprehensive set of shell scripts that automate system initialization across dozens of Linux distributions, detailing supported features, version‑specific updates, usage instructions, and code examples for network, security, package management, and more.

DevOpsOperationslinux
0 likes · 16 min read
All-in-One Linux Init Scripts for Rocky, AlmaLinux, CentOS, Ubuntu & More
Raymond Ops
Raymond Ops
Mar 7, 2025 · Databases

Master MySQL Backups: Commands for Single, Multiple, and All Databases

This guide explains how to use mysqldump to back up a single MySQL database, multiple databases, or all databases, includes options for specific tables, compression with gzip, adding drop statements, exporting only schema, and provides restore procedures and a sample automated backup script.

MySQLSQLdatabase backup
0 likes · 11 min read
Master MySQL Backups: Commands for Single, Multiple, and All Databases
Code Ape Tech Column
Code Ape Tech Column
Feb 28, 2025 · Backend Development

Spring Boot Packaging with Maven Assembly Plugin and a Deployment Shell Script

This article explains how to configure Maven profiles for different environments, use the maven‑assembly‑plugin and maven‑jar‑plugin to create a zip deployment package for a Spring Boot application, and provides a reusable shell script (shenniu_publish.sh) for extracting, starting, stopping, and restarting the service on Linux.

DeploymentSpring Bootbackend
0 likes · 13 min read
Spring Boot Packaging with Maven Assembly Plugin and a Deployment Shell Script
Raymond Ops
Raymond Ops
Feb 22, 2025 · Operations

Master Log Rotation: Shell Scripts for Automated Nginx Log Splitting

This guide walks through why nginx logs need daily rotation, demonstrates manual log splitting, provides a complete shell script for automated daily log rotation, explains logrotate configuration, and shows how to test and schedule the process with cron, ensuring clean and manageable log files.

CronSystem Administrationlinux
0 likes · 13 min read
Master Log Rotation: Shell Scripts for Automated Nginx Log Splitting
Raymond Ops
Raymond Ops
Jan 20, 2025 · Operations

How to Verify File Integrity with md5sum: Commands, Options, and Scripts

This guide explains how to use the Linux md5sum command to generate checksums, compare files, store checksum data, and employ verification options like -c, --quiet, and --status for reliable file integrity checks in scripts and system operations.

Operationschecksumfile integrity
0 likes · 4 min read
How to Verify File Integrity with md5sum: Commands, Options, and Scripts
Java Architect Essentials
Java Architect Essentials
Nov 16, 2024 · Backend Development

Spring Boot Packaging with Maven Profiles and a Shell Deployment Script

This article explains how to package a Spring Boot application using Maven profiles and the assembly plugin, generate a zip deployment bundle, and deploy it on Linux with a custom shell script that supports start, stop, restart, and unzip operations.

AutomationDeploymentSpring Boot
0 likes · 13 min read
Spring Boot Packaging with Maven Profiles and a Shell Deployment Script
Practical DevOps Architecture
Practical DevOps Architecture
Oct 28, 2024 · Databases

Shell Scripts for MySQL Database Backup and Master‑Master Replication

This article provides step-by-step Bash scripts for automating daily MySQL database backups, compressing tables, cleaning old archives, and configuring master‑master replication, including detailed commands for dumping databases, creating tar.gz packages, and setting up replication parameters on Linux servers.

AutomationMySQLReplication
0 likes · 4 min read
Shell Scripts for MySQL Database Backup and Master‑Master Replication
Efficient Ops
Efficient Ops
Oct 8, 2024 · Operations

Master Linux Process & User Queries with Powerful Bash Scripts

This guide provides Bash scripts that let you retrieve detailed information about Linux processes by PID or name, query user account details, and apply a series of system hardening tweaks such as password policies, login restrictions, and file attribute protections.

bashlinuxprocess management
0 likes · 12 min read
Master Linux Process & User Queries with Powerful Bash Scripts
Efficient Ops
Efficient Ops
Jul 8, 2024 · Operations

How to Diagnose and Fix High CPU Usage in Java Data Platforms

This article walks through a real‑world incident where a data‑platform server showed near‑100% CPU usage, explains step‑by‑step investigation using top, pwdx, and jstack, identifies a time‑conversion utility as the root cause, and presents a streamlined script‑based solution that reduced CPU load by thirtyfold.

CPU optimizationJava performanceOperations
0 likes · 11 min read
How to Diagnose and Fix High CPU Usage in Java Data Platforms
Practical DevOps Architecture
Practical DevOps Architecture
May 9, 2024 · Operations

Monitoring SSL Certificate Expiration with Zabbix Using a Shell Script

This guide explains how to create a shell script that checks SSL certificate expiration dates and integrates it with Zabbix by configuring a user parameter, testing the script, and setting up monitoring items, triggers, graphs, and alerts to ensure services remain available.

AutomationOperationsZabbix
0 likes · 3 min read
Monitoring SSL Certificate Expiration with Zabbix Using a Shell Script
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 5, 2024 · Databases

Locating Large Transactions in MySQL Binlog Using GTID and Shell Scripts

This article explains how to identify and extract large MySQL transactions from binary log files by monitoring binlog size, parsing GTID information, and using shell scripts to retrieve transaction details, timestamps, positions, and DML statistics, with optional use of the my2sql tool.

Database TroubleshootingGTIDMySQL
0 likes · 12 min read
Locating Large Transactions in MySQL Binlog Using GTID and Shell Scripts
Code Ape Tech Column
Code Ape Tech Column
Dec 29, 2023 · Backend Development

Spring Boot Packaging with Maven Assembly Plugin and shenniu_publish.sh Deployment Script

This article explains how to use Maven profiles and the Maven Assembly Plugin to create environment‑specific Spring Boot zip packages and provides a reusable shell script (shenniu_publish.sh) for extracting, starting, stopping, and restarting the packaged JAR on Linux, improving deployment efficiency.

AutomationDeploymentSpring Boot
0 likes · 15 min read
Spring Boot Packaging with Maven Assembly Plugin and shenniu_publish.sh Deployment Script
Practical DevOps Architecture
Practical DevOps Architecture
Dec 15, 2023 · Operations

How to Configure Zabbix Agent to Monitor CPU Temperature on Linux

This guide explains how to install lm_sensors, write a Bash script to retrieve CPU temperature, configure a Zabbix agent UserParameter, restart the agent, and set up a corresponding monitoring item on the Zabbix server, enabling automated CPU temperature monitoring.

CPU monitoringOperationsZabbix
0 likes · 3 min read
How to Configure Zabbix Agent to Monitor CPU Temperature on Linux
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 28, 2023 · Databases

Step‑by‑Step MongoDB Migration Using Full Backup and Incremental Oplog

This article explains how to migrate a 240 GB MongoDB replica set by performing a full backup with oplog, extracting the incremental oplog timestamp, and then applying incremental backup and restore scripts to minimize downtime, while providing detailed shell commands and precautionary tips.

BackupData RestoreDatabase
0 likes · 9 min read
Step‑by‑Step MongoDB Migration Using Full Backup and Incremental Oplog