Pg_stop_backup process does not run - Backup Intervals

From: Rodrigo Cavalcante <rodrigo(dot)java(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Pg_stop_backup process does not run - Backup Intervals
Date: 2016-05-02 19:03:44
Message-ID: 1462215824301-5901538.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On alternate days my backup is failing, by the pg_stop_backup process ()
does not perform or quit.

Version PostgreSQL: 9.1.6

The following backup script:

PGDATA=/dados
SAVE_BASE_DIR=/backup/diario
backup="'bkpfull'"
data=$(date +'%d%m%y')

WAL_DIR=/backup/archive

mv $WAL_DIR/* $WAL_DIR/wal_anterior

psql -U postgres -h localhost -c 'select pg_start_backup('$backup',true);'
template1 && \

tar -czvf $SAVE_BASE_DIR/$data.tar.gz $PGDATA && psql -U postgres -h
localhost -c 'select pg_stop_backup();' template1

--
View this message in context: http://postgresql.nabble.com/Pg-stop-backup-process-does-not-run-Backup-Intervals-tp5901538.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-05-02 19:12:53 Re: Timeline following for logical slots
Previous Message Julien Rouhaud 2016-05-02 18:46:22 max_worker_processes missing some documentation