Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YNl6x-0003NC-Ts for pgsql-admin@arkaria.postgresql.org; Tue, 17 Feb 2015 16:35:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YNl6x-0003lV-CR for pgsql-admin@arkaria.postgresql.org; Tue, 17 Feb 2015 16:34:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YNl6v-0003i3-6w for pgsql-admin@postgresql.org; Tue, 17 Feb 2015 16:34:57 +0000 Received: from nm8-vm3.bullet.mail.ne1.yahoo.com ([98.138.91.138]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YNl6r-0002kZ-N3 for pgsql-admin@postgresql.org; Tue, 17 Feb 2015 16:34:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1424190892; bh=Q7kYLLd14bOTKwVKcILJsZhG0SSSp1XjbyzAUgsM+D8=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=V+B272hqkhpdrt5/as9pt2HoK/ymI1nNaxqEWWyx7810lur4E2gRffYooER0Mdj/gZHXIfhbD+ABCJNgsXzMX9YsuNeHunnhhdA6baIQJc1n5/xzIGS1gMDY41c1GvrwuVi8N+h7xj/OtZIAIDOLmOBHqxdrKoy3v+Y8B/a1g4b5yeZNCfrHw/VCQ1EHWRR89msLBeCneH/8tZtGn0CgFmaoSE1ZFyUqhT6qu8IgSPP/fOiBR4Q2cRReJgZc01RodDH/fGsdRtel+SeOsaoxi6ji6BPa/qz8sglJ5mF/KIxgQP0t0SLDlYMBCD2PIo5MyGcs98/vqB2rMe9r67nNmQ== Received: from [98.138.101.132] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 17 Feb 2015 16:34:52 -0000 Received: from [98.138.87.3] by tm20.bullet.mail.ne1.yahoo.com with NNFMP; 17 Feb 2015 16:34:52 -0000 Received: from [127.0.0.1] by omp1003.mail.ne1.yahoo.com with NNFMP; 17 Feb 2015 16:34:52 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 505585.72791.bm@omp1003.mail.ne1.yahoo.com X-YMail-OSG: J5OBTR4VM1nPSmXsZZXHV4qn6kdViIDqrsRQcVwLj66dxFTilQ48KkFlgyOr6rY pVxHWf8q.MqwYySAVzKoD9vwjmqS0M4JIK_sCfuuddZnVqQp5Vun9WF2zAH2ew70jeYY4pdBAR8q pVyanZRtA8z1X6DhUeuTnMTJm_NWDkM9suWJn4QObdlO98gQ1BGac3jrbDGN41APUo85TkDVYpR9 RodU9ra40bIlogQmWFxcOFJ1p0X1arsVWoEk2rwf9zFTH0OKqRvO1XHUZoqLpsjDXGA0WrOTcqau Te8TDJTPANhN1iMfbaPT16jPN2cSJ3fpYZmu_OgjU9ciUWg0R909NiFzHhTQ1HEUK_BZEeTbvQj. pmKAeZA4TZeazBZgdAgY7XsS4F3NX6jbyVInYlLSf7gC5uUxmVghxV4XPWCFQHYqgI3j9F0RSBdn 6cnxCeEj06I_j0ZQ.LB2Pf.sGHXnkOufHq7LVLoyOtsh2PFyOcIck3waBWzFBhhaq3rVjf1G.zoD dEbgbNLUeZbBcYiIDJIQxcqbzAQjXXemtyot250sBGCFc6jrKJHtOMVHLaGFQSVy.YzCeCFdHBQN af20A4YfW3.5ps3ikGgak1Q-- Received: by 98.138.105.253; Tue, 17 Feb 2015 16:34:52 +0000 Date: Tue, 17 Feb 2015 16:34:43 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: girish R G peetle , pgsql-admin Message-ID: <490542817.5380493.1424190883552.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: PostgreSQL File System Based Backup Restartability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1750 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org girish R G peetle wrote: > Steps > - Database size is 1 TB > - I'll execute pg_start_backup('label'); > - I will traverse through the DATA directory to get the list of > directories and files. > - I will start moving the files to backup media. ( over network ) > - When I'm half way (500GB done), network error happens. So > movement of files is halted. > - Network issue is resolve after 30 minutes (In this time files > might have got deleted or added with creation/deletion of > database/tables ) > - I'll resume moving the files to backup media from where it had > halted. > - When movement of files is done, I'll execute pg_stop_backup() > - I'll move all the transaction logs that got archived to backup > media. > > Is PostgreSQL server recovery to a consistent state possible with > backup content obtained from above steps ? As long as you follow all the rules for what files to copy (and not copy), you should have a good backup. Some things to be careful about that I've seen people get wrong with some frequency: - Be sure to exclude all files in and under the pg_xlog directory. The backup should contain the directory itself, and it is best to include its subdirectory, but copying the files can cause corruption. - Exclude the postmaster.pid file. - Be sure *not* to exclude the backup_label file. Without this file, restoring from the backup may or may not have corruption, which may or may not be initially apparent. Be careful that when you resume after such an interruption you do not skip any files and that you complete or re-copy any files that were partially copied before the problems. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin