Timestamped Directory Backup with Rsync
A robust bash script for creating efficient, timestamped backups of important directories using rsync, ensuring data integrity and versioning.
Curated list of production-ready BASH scripts and coding solutions.
A robust bash script for creating efficient, timestamped backups of important directories using rsync, ensuring data integrity and versioning.
A bash script to parse a .env file, ignoring comments and empty lines, and export key-value pairs as environment variables for use in shell sessions or scripts.
Enhance web application security by configuring critical HTTP security headers like X-Content-Type-Options and Referrer-Policy directly within your Nginx server block.
Streamline your workflow by automating `git pull` and checking the status across multiple Git repositories in different directories with a single Bash script.
Efficiently synchronize local development files to a remote server for deployment or backup, excluding sensitive files, using `rsync` in a Bash script.
Efficiently filter and extract specific data from large log files (e.g., web server access logs) using a combination of `grep` for pattern matching and `awk` for column-based extraction.
Create and manage application configuration files or environment variable files in Bash, ensuring they exist and are populated with default content if missing.
A Bash script to periodically check if a website is online and notify if it's down, useful for site reliability and basic health checks.
A Bash script to automatically create compressed, timestamped backups of a specified directory, essential for data recovery and versioning.
Learn how to use `jq` in Bash to efficiently parse JSON output from APIs or files, extracting specific fields and transforming data for scripting.
A Bash script to verify if a specified process or service is running and, if not, restart it, ensuring continuous application availability.
Monitor the expiration date of an SSL certificate for a given domain and send a notification if it's nearing expiry, preventing service interruptions.