X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 10C44D1C4E7 for ; Mon, 11 Aug 2003 16:18:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 10376-10 for ; Mon, 11 Aug 2003 13:16:36 -0300 (ADT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by svr1.postgresql.org (Postfix) with ESMTP id EA9BED1C4B9 for ; Mon, 11 Aug 2003 13:17:55 -0300 (ADT) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19mFMl-0002t9-00; Mon, 11 Aug 2003 18:17:51 +0200 Received: from [217.230.194.139] (helo=ecologic.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19mFMk-0007cN-00; Mon, 11 Aug 2003 18:17:50 +0200 Message-ID: <3F37C1AD.5040709@ecologic.de> Date: Mon, 11 Aug 2003 18:17:49 +0200 From: Dani Oderbolz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Enio Schutt Junior , "'pgsql-admin@postgresql.org'" Subject: Re: Backup routine References: <000c01c35dd6$d62b43d0$e205000a@compaq> In-Reply-To: <000c01c35dd6$d62b43d0$e205000a@compaq> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/140 X-Sequence-Number: 9862 Hi Enio, Enio Schutt Junior wrote: > Hi > > Here, where I work, the backups of the postgresql databases are being > done the following way: > There is a daily copy of nearly all the hd (excluding /tmp, /proc, > /dev and so on) in which databases are > and besides this there is also one script which makes the pg_dump of > each one of the databases on the server. Hmm, I don't really see what you are doing with a backup of /tmp, /proc, /dev/tmp, /proc, /dev. I mean /tmp might be ok, but /proc shouldnt be backuped in my opinion, as /proc is NOT on your hd, but pointing directly to Kernel Memory. I would not dare to restore such a Backup! And /dev as well, I mean, these are your devices, so its completely Hardwarebound. > This daily copy of the hd is made with postmaster being active > (without stopping the daemon), so the data > from /usr/local/pgsql/data would not be 100% consistent, I guess. You need to stop Postgres, else forget about your backup. The DB might not even come up again. Here at my site, we have a nice little script, which can be configured to do certain actions before doing a backup of a given directory, and also after the backup. > > There are some questions I have about this backup routine: > If I recover data from that "inconsistent" backup hd, I know that the > binary files (psql, pg_dump and so on) > will remain ok. The data may have some inconsistencies. Would these > inconsistencies let the postmaster > start and work properly (that is, even with the possible presence of > inconsistent data) Would it start and > be able to work normally and keep the information about users and > groups? I am talking about users and > groups information because these ones are not dumped by pg_dump. I was > thinking about using > "pg_dump -g" to generate this information. I would really not go down this road. Regards, Dani