X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B0D895E46C2 for ; Fri, 27 Aug 2004 06:02:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 15678-09 for ; Fri, 27 Aug 2004 09:02:01 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id C25235E46C1 for ; Fri, 27 Aug 2004 06:01:58 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i7R91uLq021443 for ; Fri, 27 Aug 2004 09:01:56 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7R8eOZD014631 for pgsql-admin@postgresql.org; Fri, 27 Aug 2004 08:40:24 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.admin Subject: Re: backups and WAL Date: Fri, 27 Aug 2004 10:40:15 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 30 Message-ID: <412EF36F.8050809@bigfoot.com> References: <20040827080307.GA7494@vayven.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: pablobarbachano@yahoo.es User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en In-Reply-To: <20040827080307.GA7494@vayven.info> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/272 X-Sequence-Number: 14667 pablobarbachano@yahoo.es wrote: > Hi, first of all thanks for postgresql, it has never given a problem > and is performing great. > > Now my question: my employer wants to do backups every 12 hours, and > save the logs evry 2 hours to... Can I simply save the logs > (cp pg_xlog/* ...) or do I need something more elaborate? > > Now in a restore situation ... I restore the database, and then what? > put the saved files back in the pg_xlog/ dir, then start postmaster > and magically all starts working? Am I correct or completely insane? > The documentation is not clear in that aspect... I suppose that you use a pre 8.0 version, if yes take a look at: http://www.postgresql.org/docs/7.4/interactive/backup.html take also a look at PITR available in the future ( near I hope :-) ) 8.0: http://developer.postgresql.org/docs/postgres/backup-online.html Regards Gaetano Mendola