Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zg1pD-0004uV-Er for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 02:36:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zg1pC-00066E-L7 for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 02:36:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zg1pC-00065x-0n for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 02:36:26 +0000 Received: from mout.gmx.com ([74.208.4.200]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Zg1p4-00055K-6i for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 02:36:25 +0000 Received: from anaphora.localdomain ([5.102.218.194]) by mail.gmx.com (mrgmxus002) with ESMTPSA (Nemesis) id 0MNqKz-1ZlnF83aAt-007Tn1; Sun, 27 Sep 2015 04:36:14 +0200 Subject: Re: BUG #13642: no backup_label file in PG_DATA after pg_stop_backup(); To: Jeff Janes References: <20150926031617.3022.6412@wrigleys.postgresql.org> <56063AE6.9060407@mail.com> Cc: Pg Bugs From: Amir Rohan X-Enigmail-Draft-Status: N1110 Message-ID: <5607561B.3030702@mail.com> Date: Sun, 27 Sep 2015 05:36:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ssGuyXPMcmoEd0jt2zu9XlZESurTv4cK4sG7sVmroQvGX5xl5dx qv13LOog5pdcvYfIryLjp57y4gZ73rp6Yc9QkPB7X2C8xR15OsPnkNkWV1u3gsK9ShJHjme +sicQuGVzhMfuvq0ZoKTst/0PCWeSC8JbzIDBEPrZs7OIi3RmeA2+UvorTEgfGy/F586Jj+ gPAz/ISumz/IcQZiXA6yA== X-UI-Out-Filterresults: notjunk:1;V01:K0:JfMiC3RCQMQ=:xV30T7am2+l9cJy2M1vHxj HRiTWcsdjDwKxMi3cIU5XV+u8ZMtsVR0Pf2fQ3En5+3QteLLlccpev4fDOl1tRLAHUngUTnJw ywPWvj66uhrLFWNuJEJeVEQSPdrAlfHkyFLeP30O4CGNe0ww4PBmR3Rx3aJvG4SKmC/cOdhZq l5mvFripjV140Uck5cnHOEdFWJkUm+ylaPF+DtF+ezcHf+owypftjJKX3+to4xfV+jmUC61Sm inELGl6CqXiDjFNkNjZUM6MNdlLgd+OZRZQl0YjltPvDFkPKI4fCj7bkQxGhSno5DbUr4nP/A vkZ42wqZ/ZM2TSr9myFQJ/5jekpg2Np3+tHGNxKNqclVIRiqxzr6JoymE4jPAycLugmqxofmA Iysku2YQsBqa8Iuzlz+m19v6xhw2SRgO1FPkhSYna+acXQcoHtRWhZFYiaEjB8BFWnXeFVo69 yB/yRPFu+eiQs/pWQSTUS3FypWBDLCaD98MXw3Jat+C4ZsycQ7hQ8fBCqdV10bDuL3ICJC7US b2amryCC2AHc700zbkO4PAuh2oGNAFEX9kAVnGet+dwpHIBiLBElpu9Aurb+/4pEcH9zF55qj s9q0RxOhUrAWC6gISBsgksLDkCB/eq15/6g0dZXFIFw3BUY3OoU5jCKhQTIcJlzsfgpiU6cMg 2SWpZmnoBYTSjc8RwTr1DFXgnKjSbI4yGY8544JiRH+WXiXa486M5SE7f9pMVrjYxCks4W0cl 0KnUH6kWl0mTW1VOAt+W+LOzRLPSX3AefNKAEA== X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 09/27/2015 03:58 AM, Jeff Janes wrote: > On Fri, Sep 25, 2015 at 11:27 PM, Amir Rohan > wrote: > > No. Well, there's a backup file in the archive directory that looks like > it might be /it/ but it's not named `backup_label` (it wouldn't, since > multiple backups need to coexist). > > The very next item says: > > 3. Perform the backup, using any convenient file-system-backup tool > such as tar or cpio (not pg_dump or pg_dumpall). > I understand, but "backup" is so overloaded that "perform the backup" isn't really descriptive. What is meant is "Make a copy of your server's entire tree, including configuration files, subdirectories, as well as the backup_labeland tablespace_map files created when you initiate pg_start_backup()". It may seem ovious to veteransm but trust me, to someone new the various steps can be very confusing, and the documentation for it isn't great. > > You have to "perform the backup", as quoted above. You don't have to do > it with tar, and you don't need to name the resulting file ".tgz". But > using some method or another, you do need to actually take a backup, if > your desire is to have a backup. > > Did you create a backup? If you did not, then no, your backup is not > usable. If you did, does it include the backup_label file? > > Cheers, > > Jeff Thanks Jeff. I've spent enough time on this so that I feel I have a reasonable grasp of the steps involved. My WALs are archived, The file system backup is stowed away, with backup_label safely tucked in it. I posted a documentation to -docs, which hopefully would qualify as an improvement. Obviously, it would help if someone more experienced reviewed it and gave it up a thumbs up. If you have the spare cycles... Kind Regards, Amir -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs