From owner-freebsd-pkg@freebsd.org Mon Aug 3 07:15:02 2015 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B76E9B23A0 for ; Mon, 3 Aug 2015 07:15:02 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D6CA01D51 for ; Mon, 3 Aug 2015 07:15:01 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local ([192.168.100.2]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t737EpVB084362 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 3 Aug 2015 08:14:52 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t737EpVB084362 Authentication-Results: smtp.infracaninophile.co.uk/t737EpVB084362; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host [192.168.100.2] claimed to be liminal.local Subject: Re: Another pkg feature request or some .sh method To: freebsd-pkg@freebsd.org References: <55BED2B4.90605@yahoo.com> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <55BF14EB.8030006@FreeBSD.org> Date: Mon, 3 Aug 2015 08:14:51 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55BED2B4.90605@yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OSgpe69A8E42whhk33CJ7q2gUwmuekxbc" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 07:15:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --OSgpe69A8E42whhk33CJ7q2gUwmuekxbc Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 03/08/2015 03:32, Jeffrey Bouquet via freebsd-pkg wrote: > Since this machine is rarely up during the periodic (overnight) backup > of local.sqlite, manually copying the file has once or twice due to she= ll > history inadvertently overwritten the recent version with one a few > days old.=20 >=20 > Could pkg store a 2nd copy somewhere automatically somehow, or does > someone know the most convenient foolproof .login or something to ensur= e > that an accidental erasure means not an hour or two of restores VS just= > copying a 2nd copy from somewhere. [ I'd like to emphasize > convenient, and foolproof, something to eventually put into base or int= o > most/some of the pkg commands... ] >=20 > As an aside, if I'm not mistaken, it could be backported if possible to= > dragonflyBSD (etc)... You can just run /usr/local/etc/periodic/daily/411.pkg-backup manually -- that will keep a history of 7 backups by default, or you can tune that value by setting $daily_backup_pkg_count in periodic.conf I've found for some machines that shifting the time of day the daily / monthly / weekly jobs run is the simplest solution. Just edit /etc/crontabs. Some of the periodic jobs are quite IO intensive and may interfere with normal usage, but on the whole it is pretty painless. Cheers, Matthew --OSgpe69A8E42whhk33CJ7q2gUwmuekxbc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJVvxTrXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATe+oP/2Rz/7Uo+wdspN4BzRBDIvzt MLn9tWjOj/YCLjUGMOfomzqRAVWRDUjw69ErSJmAejS56o6rbHK6y+gZ2/8MRhJZ JXUeUxe/J2JISDhj8vE2NW9cZGb/AJI/nHSeT8vto3WKlBd3kKsFTgU1p1v+JqnS gs1TwK5ZR2zE1cSCJSWFqOPi+gPfaFwNchMB/aSafcI+AIA6Lr+KkKGj8MAXOXFd 4QFdb28o6Utp38T1r8TV5oH0bMzSQ18o9U/XMim96qJhfScrXg5SxoCQvoA2l8Ei BWRRtmLARkQA+neZaQ5Smiv6KOe9v749DggjA0OL4L6rQonrtlmib2mM6hMlKVlt ewXZ5dVx4ikRkJi7RyL6kOK6QYqBWIQDLvTlf9602SZuaGmmA5xeR9SDr9c4fx26 yi3CP/OmNxotkohIXcCHJ5A8ixBy5k71vDbTMI33i/zkWYGuMZlY3RNdmh+ZXgGf Ft0DXxbFcO/x9Z8M1YYYCVsTpJ1luSPXDqGnVCXh88GB93BaXyOwLz/P+Jn8BnL+ C/ejan/pKSkEuyte4Z3YlyLW7tavYRdvre9gJIHbckUdC+stWL9Ir6QJ+NOqp5LV LeQS+37ZO1z7NFKrSSu7OkYQ97/I9AXhkzkIJx2hS/6VQMhPh2WxrVPGyuGvmIjJ WlMCNNvmeOZniNFy7zcH =Fu1U -----END PGP SIGNATURE----- --OSgpe69A8E42whhk33CJ7q2gUwmuekxbc--