You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scripts in this repo start as either assignments from class or ideas that I want to practice and implement in my homelab.
weather.sh - This script started as a class bonus assignment. It is designed to give the user a different response depending on temperature. It prompts the user for a temperature between
-128 degrees and 134 degrees. It then responds with "Hot", "Fine", or "Cold" depending if the input is 76 or higher, between 50 and 76, and 50 or lower, respectively.
new_folder.sh - This script was designed to automatically create and rename new directories in the local file system. It first creates the directory with a temporary placeholder name, then prompts
user to enter a new name for it. The script then moves the user out of the directory, applies the new name, and then moves the user back in. In the event that the user does not input a new name for
the directory, the script applies a default name "New Directory" along with a counter to avoid overwriting any existing folders.
backup.sh - This script started as another class bonus assignment. It is designed to create a backup of the /home directory and all subordinate directories and folders and move them to the destination directory /mnt/backups. The script operates using the tar archiving system, first creating an archive and then compressing it using gzip. The script is designed where, upon successful completion of the process, cleanly prints the size of the archive to the terminal. Any errors recorded by tar during the process are re-directed to a text file, backup_log.txt which is added to the destination directory.
About
Repository containing Bash scripts for VM testing and deployment