This repository contains a collection of useful Bash scripts for various automation tasks, including file archiving, audio alerts, Docker automation, and file monitoring.
A script to archive a given directory using either tar or zip.
Usage:
./archive.sh <directory_name>- Displays the directory size.
- Prompts the user to choose an archive method (
tarorzip). - Creates an archive and displays its size.
A script to play an audio notification using aplay.
Usage:
./beep.sh- Plays the sound file located at
/home/saurabh/Downloads/jai-shree-ram-notification-ringtone-tone-60275.wav.
A script to automate Docker container management and image deployment to Docker Hub.
Usage:
./docker_hub.sh- Builds a Docker image from the portfolio website.
- Stops and removes an existing container if running.
- Runs a new container.
- Tags and pushes the image to Docker Hub.
A script to monitor file changes in a given directory and detect significant file size increases.
Usage:
./file_monitor.sh <directory_name>- Monitors the specified directory using
inotifywait. - Detects file size changes and logs increases greater than 10%.
- Displays disk usage periodically.
Ensure the following packages are installed on your system:
bashtar,zipdockerinotify-toolsnumfmtaplay(for beep.sh)
This project is open-source and available under the MIT License.