mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Moving to postgres backup directory.
This commit is contained in:
parent
4fb48aa754
commit
5e2c3f7a10
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
|||
- name: Ensure postgres backup directory
|
||||
become: yes
|
||||
file:
|
||||
path: /backup
|
||||
path: /srv/newsblur/backups
|
||||
state: directory
|
||||
mode: 0777
|
||||
|
||||
|
@ -96,5 +96,5 @@
|
|||
name: postgres backup
|
||||
minute: "0"
|
||||
hour: "4"
|
||||
job: /srv/newsblur/docker/mongo/backup_mongo.sh
|
||||
job: /srv/newsblur/docker/postgres/backup_postgres.sh
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
now=$(date '+%Y-%m-%d-%H-%M')
|
||||
|
||||
echo "---> PG dumping - ${now}"
|
||||
BACKUP_FILE=/var/lib/postgresql/backup/backup_postgresql_${now}.sql;
|
||||
BACKUP_FILE="/srv/newsblur/backups/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_FILE
|
||||
|
||||
echo " ---> Compressing $BACKUP_FILE"
|
||||
|
|
Loading…
Add table
Reference in a new issue