Skip to content

Commit

Permalink
add --quiet to stride db backup cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Mar 4, 2024
1 parent b966dae commit 87abe4e
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions modules/openbus/stride_db_backup.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
#
# 37 1 * * * bash /var/lib/postgresql/stride-backup.sh 2>&1 >> /var/lib/postgresql/stride-backup.log
#
# cd /var/lib/postgresql &&\
# echo `date +"%Y-%m-%d %H:%M"` creating stride_db backup &&\
# pg_dump -n public --no-privileges -f ./stride_db.sql &&\
# du -h ./stride_db.sql &&\
# echo `date +"%Y-%m-%d %H:%M"` gzipping stride_db backup &&\
# gzip -kf ./stride_db.sql &&\
# du -h ./stride_db.sql.gz &&\
# # this env file is in vault Projects/OBus/stride-db-backup
# . /var/lib/postgresql/stride-backup.env &&\
# echo `date +"%Y-%m-%d %H:%M"` copying backup to S3 &&\
# /usr/local/bin/aws s3 cp ./stride_db.sql.gz s3://${BUCKET_NAME}/stride_db.sql.gz &&\
# echo `date +"%Y-%m-%d %H:%M"` Great Success!
#cd /var/lib/postgresql &&\
#echo `date +"%Y-%m-%d %H:%M"` creating stride_db backup &&\
#pg_dump -n public --no-privileges -f ./stride_db.sql &&\
#du -h ./stride_db.sql &&\
#echo `date +"%Y-%m-%d %H:%M"` gzipping stride_db backup &&\
#gzip -kf ./stride_db.sql &&\
#du -h ./stride_db.sql.gz &&\
#. /var/lib/postgresql/stride-backup.env &&\
#echo `date +"%Y-%m-%d %H:%M"` copying backup to S3 &&\
#/usr/local/bin/aws s3 cp --quiet ./stride_db.sql.gz s3://${BUCKET_NAME}/stride_db.sql.gz &&\
#echo `date +"%Y-%m-%d %H:%M"` Great Success!

0 comments on commit 87abe4e

Please sign in to comment.