X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from sp4.qcslink.com (sp4.qcslink.com [200.35.147.4]) by mail.alpinelinux.org (Postfix) with ESMTP id E08E2BAEA2 for ; Mon, 15 Aug 2011 05:33:43 +0000 (UTC) Received: from sp4.qcslink.com (localhost.localdomain [127.0.0.1]) by sp4.qcslink.com (Postfix) with ESMTP id 4EF7D1A4A8 for ; Mon, 15 Aug 2011 01:33:32 -0400 (EDT) Received: from [10.252.6.112] (c-98-234-43-98.hsd1.ca.comcast.net [98.234.43.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nangel@nothome.org) by sp4.qcslink.com (Postfix) with ESMTPSA id 121901A461 for ; Mon, 15 Aug 2011 01:33:31 -0400 (EDT) Message-ID: <4E48AFC1.8010501@alpinelinux.org> Date: Sun, 14 Aug 2011 22:33:53 -0700 From: Nathan Angelacos User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] Re: [PATCH] main/postgresql/pg-restore.initd References: <1313414177-4854-1-git-send-email-nangel@alpinelinux.org> In-Reply-To: <1313414177-4854-1-git-send-email-nangel@alpinelinux.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On 08/15/2011 06:16 AM, Nathan Angelacos wrote: > From: Nathan Angelacos > > add a "purge" command - delete the temporary database backup The idea here is to delete the temporary database dump after an lbu commit has completed: -- /etc/lbu/pre-package.d/postgresdump -- #!/bin/sh /etc/init.d/pg-restore dump -- /etc/lbu/post-package.d/postgresdump -- #!/bin/sh /etc/init.d/pg-restore purge Otherwise the temporary file is never removed. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---