mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge branch 'master' of github.com:samuelclay/NewsBlur
This commit is contained in:
commit
6e2c71124c
1 changed files with 2 additions and 1 deletions
|
@ -15,12 +15,13 @@ do_cleanup(){
|
|||
|
||||
do_backup(){
|
||||
log 'snapshotting the db and creating archive'
|
||||
sudo su postgres -c "time pg_dump ${DB_NAME} | gzip -c > ~/${file_name}"
|
||||
sudo su postgres -c "time pg_dump ${DB_NAME} | gzip -c > /tmp/${file_name}"
|
||||
log 'data backd up and created snapshot'
|
||||
}
|
||||
|
||||
save_in_s3(){
|
||||
log 'saving the psql backup archive in amazon S3' && \
|
||||
cd /tmp &&
|
||||
python s3.py set ${file_name} && \
|
||||
log 'data backup saved in amazon s3'
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue