From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | Mitesh Shah <mitesh(dot)shah(at)stripes39(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org, adelaide-au-pug(at)postgresql(dot)org, seapug(at)postgresql(dot)org |
Subject: | Re: [SQL] pg_dump: aborting because of server version mismatch |
Date: | 2012-05-11 19:39:18 |
Message-ID: | 4FAD6AE6.6000904@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | adelaide-au-pug atlpug austinpug bostonpug bwpug pgsql-admin pgsql-bugs pgsql-sql seapug sfpug |
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(dot)shah(at)stripes39(dot)com <mailto:mitesh(dot)shah(at)stripes39(dot)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(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | John Nash | 2012-10-15 08:22:00 | WebSphere Application Server support for postgres |
Previous Message | Christophe Pettus | 2012-05-03 03:27:28 | Re: [sfpug] pg_dump: aborting because of server version mismatch |
From | Date | Subject | |
---|---|---|---|
PostgreSQL : | Lucky | 2012-06-10 17:22:09 | PostgreSQL : 사설 토토? |
Previous Message | Christophe Pettus | 2012-05-03 03:27:28 | Re: [sfpug] pg_dump: aborting because of server version mismatch |
From | Date | Subject | |
---|---|---|---|
Next Message | Jon Erdman | 2013-09-04 07:15:00 | Fw: Re: Austin startup week |
Previous Message | Christophe Pettus | 2012-05-03 03:27:28 | Re: [sfpug] pg_dump: aborting because of server version mismatch |
From | Date | Subject | |
---|---|---|---|
Next Message | Jessica Richard | 2012-05-12 13:01:10 | |
Previous Message | Bruce Momjian | 2012-05-11 00:29:52 | Re: Advice/guideline on increasing shared_buffers and kernel parameters |
From | Date | Subject | |
---|---|---|---|
Next Message | Thangalin | 2012-05-14 02:46:12 | pg_dump: SQL command failed |
Previous Message | Tom Lane | 2012-05-11 18:32:48 | Re: BUG #6629: Creating a gist index fails with "too many LWLocks taken" |
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2012-05-11 19:43:58 | Re: Finding Max Value in a Row |
Previous Message | Carlos Mennens | 2012-05-11 19:30:27 | Re: Finding Max Value in a Row |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Bernier | 2012-05-29 16:19:25 | next week's get together |
Previous Message | kah42pub | 2012-05-10 00:45:18 | PgMag |
From | Date | Subject | |
---|---|---|---|
Next Message | Brian Ghidinelli | 2012-07-26 19:19:25 | Occasionally slow queries - should I be concerned? |
Previous Message | Steve Crawford | 2012-05-04 16:37:31 | Re: SFPUG parking for Amazonstravaganza? |
From | Date | Subject | |
---|---|---|---|
Previous Message | Christophe Pettus | 2012-05-03 03:27:28 | Re: [sfpug] pg_dump: aborting because of server version mismatch |
From | Date | Subject | |
---|---|---|---|
Previous Message | Christophe Pettus | 2012-05-03 03:27:28 | Re: [sfpug] pg_dump: aborting because of server version mismatch |