Project

General

Profile

« Previous | Next » 

Revision 14852

fix: lib/sh/db.sh: pg_snapshot(): first need to run pg_stop_backup() in case a backup was not stopped cleanly

View differences:

trunk/lib/sh/db.sh
459 459
{
460 460
	echo_func; kw_params from to; local from="${from:-/var/lib/postgresql}"
461 461
	
462
	pg_stop_backup
462 463
	if pg_start_backup; then # perform online backup
463 464
		try db_copy "$@"
464 465
		pg_stop_backup

Also available in: Unified diff