On 05/02/2012 12:55 PM, Mitesh Shah wrote:
Hi,
I am trying to create a daily backup cron script but it fails with an
error as below:
Any pointers to resolve this will be greatly appreciated.
Thanks,
Mitesh Shah
mitesh.s...@stripes39.com <mailto:mitesh.s...@stripes39.com>
*(1) Error:*
bash-3.2$ sh pg_backup_rotated_orig.sh
Making backup directory in /Users/miteshshah/Documents/2012-05-02-daily/
-e
Performing full backups
-e --------------------------------------------
Plain backup of mitesh
*pg_dump: server version: 9.1.2; pg_dump version: 9.0.5*
The problem is you are using an older version of pg_dump to dump a newer
database. That will not work.
Possible solution:
You are running via cron. Cron has its own environment. Unless you are
explicit in your pathing you can get surprising results, see above.
Find the path to the 9.1.2 version of pg_dump and use that absolute path
in your script.
*pg_dump: aborting because of server version mismatch*
-e
All database backups complete!
--
Adrian Klaver
adrian.kla...@gmail.com
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs