reedmaniac.com
– the blog –
Documenting my life before I forget it.
Processing the chaos, badly and in public
Revisions always pending.

DB Backup Script for Forge or Homestead

Had a client that wanted to have hourly backups but also keep a daily backup around for a couple weeks too. Shell scripting is definitely something I only dabble in but this seems to do the trick. Configuration is at the top. Just make a backups directory and set up a cron to run the script on an hourly basis.