agora inbox for austinpug@postgresql.org
help / color / mirror / Atom feedFrom: Adrian Klaver <adrian.klaver@gmail.com>
To: Mitesh Shah <mitesh.shah@stripes39.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-sql@postgresql.org
Cc: adelaide-au-pug@postgresql.org
Cc: seapug@postgresql.org
Subject: Re: [SQL] pg_dump: aborting because of server version mismatch
Date: Fri, 11 May 2012 12:39:18 -0700
Message-ID: <4FAD6AE6.6000904@gmail.com> (raw)
In-Reply-To: <CAHofYQQ6yvHGCiHPBqTAL5fU=3haWXdE7oX-3=q=pcGYPajFxg@mail.gmail.com>
References: <CAHofYQQ6yvHGCiHPBqTAL5fU=3haWXdE7oX-3=q=pcGYPajFxg@mail.gmail.com>
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.shah@stripes39.com <mailto:mitesh.shah@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.klaver@gmail.com
view thread (8+ messages)
Message-ID: <4FAD6AE6.6000904@gmail.com>
Permalink: ../4FAD6AE6.6000904@gmail.com/
Also on: postgresql.org/message-id/4FAD6AE6.6000904@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: austinpug@postgresql.org
Cc: adrian.klaver@gmail.com, mitesh.shah@stripes39.com, pgsql-admin@postgresql.org, pgsql-bugs@postgresql.org, pgsql-sql@postgresql.org, adelaide-au-pug@postgresql.org, seapug@postgresql.org
Subject: Re: [SQL] pg_dump: aborting because of server version mismatch
In-Reply-To: <4FAD6AE6.6000904@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox