From: Sai Hertz And Control Systems <sank89@sancharnet.in>
To: Alexey Bobkov <bax@sunet.ru>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump/pg_restore
Date: Mon, 12 Jan 2004 21:47:08 +0530
Message-ID: <4002C884.3080000@sancharnet.in> (raw)
In-Reply-To: <400288CC.4050005@sunet.ru>
References: <400288CC.4050005@sunet.ru>
Dear Alexey Bobkov ,
>
> Then a try to restore my data:
> pg_restore /path_to_database/backup/db_backup.file
> and get next error
> pg_restore: [archiver] input file does not appear to be a valid archive
Use psql instead with command
psql -U username databasename -f yourdb_file.sql
Yes you will have to edit the file a bit.
Drawbacks are :
triggers will go of on all insert and will be stumbling block in case to
dump you may use the following command in future
pg_dump --disable-triggers -U <user_name> -a -d -b -D -Fc -Z 9 -f
<filername.tar.gz> <dbname>
and to restore use
pg_restore --disable-triggers -U <user_name> -d <dbname>
<backupfilename.tar.gz>
Regards,
Vishal Kashyap
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: pgsql-admin@postgresql.org
Cc: sank89@sancharnet.in, bax@sunet.ru
Subject: Re: pg_dump/pg_restore
In-Reply-To: <4002C884.3080000@sancharnet.in>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox