Dump and restore problem - Mailing list pgsql-general

From Stuart Luppescu
Subject Dump and restore problem
Date
Msg-id 1213825267.16234.31.camel@musuko.uchicago.edu
Whole thread Raw
Responses Re: Dump and restore problem  (David <wizzardx@gmail.com>)
List pgsql-general
Hello, I had a very nice system where I mirrored everything to another
machine each night, so in case of disaster, I could easily switch over
to the mirror.

The backup script uses a line like this:

pg_dump -b -F t -h $postgresql_hostname $i > "$location_backup_dir/`date
+%B-%Y`/$date_info/postgresql_database-$i-backup"

I transfer the backup files by rsync and then run this on the mirror:

pg_restore -c -U dbuser -d dbname -F t postgresql_database-db-backup

This worked fine for months until I upgraded postgres on the main
machine from 8.0.13 to 8.0.15. From then on I started getting these
messages:

pg_restore: [tar archiver] could not open TOC file for input: No such
file or directory

The funny thing is that this started when I upgraded postgres on the
main main machine a little over a week ago, but I had already upgraded
from 8.0.13 to 8.0.15 on the mirror machine back in January (and the
error happens when I try to restore the backup on the mirror).

If anyone can help, I would be very appreciative.

--
Stuart Luppescu -=- slu .at. ccsr.uchicago.edu
University of Chicago -=- CCSR
才文と智奈美の父 -=-    Kernel 2.6.24-gentoo-r8
Is knowledge knowable?  If not, how do we know
 that?




pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Database design: Temporal databases
Next
From: Steve Clark
Date:
Subject: Re: renumber table