Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YO6Zp-0001zE-S1 for pgsql-admin@arkaria.postgresql.org; Wed, 18 Feb 2015 15:30:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YO6Zo-00029n-NM for pgsql-admin@arkaria.postgresql.org; Wed, 18 Feb 2015 15:30:12 +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 1YO6Zn-00028X-9y for pgsql-admin@postgresql.org; Wed, 18 Feb 2015 15:30:11 +0000 Received: from nm14-vm7.bullet.mail.gq1.yahoo.com ([98.136.218.79]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YO6Ze-0003R6-30 for pgsql-admin@postgresql.org; Wed, 18 Feb 2015 15:30:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1424273400; bh=RKdT9nN0PO1xm+FGPxBPSUAn6eYDYgI6p+RD4RKJ6w8=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=rjfT3KmOeC40heSfZJp5hoNmqa8CgMZsavn2QSMqhwdPvwfdau+ps3cYRmfDJdHpZ5TJ9zf1ks9+Y1vhNp8d2OK+1MPzfgjVyVbgFMWf9X9bbBq3U+E24Ilw2uGzzNl4tBw2kZyWxNHPq53EhhouZq03LufoczygDERk86z1UBRIERQ4xR0T+3A9pTM04GsLC+lM15aZNPUdcDHuJyi0LeBnDb6xkf93axP3wmmZK/64i5PS05SnMwlcTGHZ9tCczw4sAV9vXyg53VzxVAaJKDH/v/azgdpxXYkj5SyZCRnr0Aib3gKeHJ76UPg6qiElh6xjjJ+BNhcR4T67ATYJsQ== Received: from [216.39.60.181] by nm14.bullet.mail.gq1.yahoo.com with NNFMP; 18 Feb 2015 15:30:00 -0000 Received: from [98.137.12.194] by tm17.bullet.mail.gq1.yahoo.com with NNFMP; 18 Feb 2015 15:30:00 -0000 Received: from [127.0.0.1] by omp1002.mail.gq1.yahoo.com with NNFMP; 18 Feb 2015 15:30:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 237775.62020.bm@omp1002.mail.gq1.yahoo.com X-YMail-OSG: 2cT3UVAVM1lV9elPCEhqXJH4GZSGQL7Akq5PWcpiW0BEXL9yPz_Z5uk_nrDpkq0 jecAvSuiG2YVr_8B74XrTltER_s_vUQT8q3CBcmXJTx5_x0JFAzVwgkkfry4z_9kZtzzGq_Md51x Ujhix33N2E3L.ITNsm6RHBMkLZXiqKaCGZzatP3c5GHfrIGlIApMePR7zfjHSJT7fTbbMAgMYmeQ 1Dw_NXCtaCGZWe6TFZdmV857Q.GOJAeFf9xdE3IYuIeZ5UzxVRdsthgFyTe2kL25fzV7DNk11SsU leuFQC5_rLEplc4mC2UQlWjHsii2sFv0ZxkAy9S3orDTard2PyQAICNDkayVj_SHgozjGcc5_sXb ta9Xq2BhKsYYbnRO7X3sWVoLzGoE3J9IK5AL2A48NtRlolvfSkQn3.sV5ryhi9l3gG42lzFv5c49 K9Zqb5tmsvCh8Fo23q8HCoF.5nz4vUyBqt9LnDsfDtvddEnrI8wYwgEz08moT8I1BezEXKo7deLS JZ4zqcAMYkoIparkoFXflffp7bxa9.MKeg8REocfszJCHhXS2NDu4cjLTSkm.57sAqGckAQTzPcM rRrQN4bGTfilOmhp1OK6TIg-- Received: by 98.138.105.223; Wed, 18 Feb 2015 15:29:59 +0000 Date: Wed, 18 Feb 2015 15:29:30 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: girish R G peetle Cc: pgsql-admin Message-ID: <2057820533.544572.1424273370550.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: 1651 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: > "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." > > Here you mean, we should not skip any files that was already > backed up before interruption ? > I will have to backup entire content under DATA directory again ? No. Think of it this way: for every file that existed both when pg_start_backup() and pg_stop_backup() were run, every OS-level page must represent the state of that page at some point between when those functions were run. *Which* point in time each page represents is not important, and it is not expected that all files (or all pages within a file) represent the same point in time. WAL replay is guaranteed to fix up all pages modified between those function executions. The backup_label file specifies which WAL records are needed to do that. There were two concerns I had with what you described. (1) That when you resume with the 20th file, that is not an ordinal position in a new list which might have fewer files ahead of the 20th position, resulting in skipping some files. If you're continuing to use the original list, using the position in that list is fine. (2) That if the error occurred part-way through reading a file, leaving a portion uncopied, that the missing portion be copied. (Of course re-copying the whole file works, too; but you could safely resume just past the last page successfully copied before the network 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