Date: Mon, 3 Aug 2015 08:14:51 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-pkg@freebsd.org Subject: Re: Another pkg feature request or some .sh method Message-ID: <55BF14EB.8030006@FreeBSD.org> In-Reply-To: <55BED2B4.90605@yahoo.com> References: <55BED2B4.90605@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55BF14EB.8030006>