mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing postgres backup cron job.
This commit is contained in:
parent
22feba4443
commit
5407fb526e
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
- name: Set backup vars
|
||||
set_fact:
|
||||
redis_story_filename: backup_redis_story_2021-04-13-04-00.rdb.gz
|
||||
postgres_filename: backup_postgresql_2022-01-06-19-46.sql.gz
|
||||
postgres_filename: backup_postgresql_2022-02-02-21-45.sql.gz
|
||||
mongo_filename: backup_mongo_2021-03-15-04-00.tgz
|
||||
redis_filename: backup_redis_2021-03-15-04-00.rdb.gz
|
||||
tags: never, restore_postgres, restore_mongo, restore_redis, restore_redis_story
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
NOW=$(eval date +%F-%H-%M);
|
||||
BACKUP_FILE=backup_postgresql_${NOW}.sql;
|
||||
sudo docker exec -it postgres
|
||||
/usr/lib/postgresql/13/bin/pg_dump -U newsblur -h 127.0.0.1 -Fc newsblur > backup/$BACKUP_FILE;
|
||||
/usr/lib/postgresql/13/bin/pg_dump -U newsblur -h 127.0.0.1 -Fc newsblur > backups/$BACKUP_FILE;
|
||||
sudo docker run --rm -it
|
||||
-v /srv/newsblur:/srv/newsblur
|
||||
-v /backup/:/backup/
|
||||
|
|
Loading…
Add table
Reference in a new issue