This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# This script will take a snapshot of the database | |
# It will then gzip it | |
# It will save it in the 'storage' directory | |
# it will delete any old db snapshots > 7 days. | |
echo "===== Starting Snapshot ====" | |
# add two vars | |
database_name='test_db' | |
database_user='test_user' |