Some random scripts that I've written for various reasons
I wrote this script to help me keep daily backups for a postgres database for a project I did in 2018.
I ran it via cron 0 0 * * *
. It would run everyday at 12:00am.
Honestly, not the best naming scheme for my backups, but it worked for what I needed.
This checks whether NGINX has been shut down, if it has it starts it back up (probably a better way but whatever)
This script bootstraps a new Java project. The cli takes either a name or a name and author
./JavaProjectBootstrapper.sh NewProject "John Deere"
Creates the following file structure:
ProjectName
- README.md
- compile.sh
- src
- Main.java
- build
- tests