On Sep 6, 2013, at 12:23, Jim Ballantine j.ballant...@gmail.com wrote:
The backup in /var/backups was a copy of the current DB, so it was not
usable, however there was/is and older backup that was not corrupt. So I
restored
it into /var/db and then update that one.
Which is nice reminder
.
-- Forwarded message --
From: Jim Ballantine j.ballant...@gmail.com
Date: Wed, Sep 4, 2013 at 3:09 PM
Subject: Re: Package database
To: Freddie Cash fjwc...@gmail.com
I looked in /var/db and there is not dir/file named backup. There is a
dir
named pkg.bak but it is empty.
On Wed, Sep 4
.
-- Forwarded message --
From: Jim Ballantine j.ballant...@gmail.com
Date: Wed, Sep 4, 2013 at 3:09 PM
Subject: Re: Package database
To: Freddie Cash fjwc...@gmail.com
I looked in /var/db and there is not dir/file named backup. There is a
dir
named pkg.bak but it is empty.
On Wed, Sep
Sorry these didn't get to the list.
gmail responses only to sender and not cc,
it also seems to top post.
-- Forwarded message --
From: Jim Ballantine j.ballant...@gmail.com
Date: Wed, Sep 4, 2013 at 3:09 PM
Subject: Re: Package database
To: Freddie Cash fjwc...@gmail.com
I
My /var/db/pkg has become corrupt, and I can't find an archive of it to
install in it's place. Does one exist and if so where? If not any ideas on
how to rebuild the db?
Thanks
Jim Ballantine
___
freebsd-stable@freebsd.org mailing list
On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine j.ballant...@gmail.comwrote:
My /var/db/pkg has become corrupt, and I can't find an archive of it to
install in it's place. Does one exist and if so where? If not any ideas
on
how to rebuild the db?
Are you using PKGng or the old pkg_*
Le 04/09/2013 19:43, Freddie Cash a écrit :
If using PKGng, there's a backup copy under /var/db/backup*
And if the backup is corrupted, maybe with remote query and by making
the list of files in /usr/local, you can match packages that have to be
reinstalled (and maybe rebuild the database
Quoth Freddie Cash fjwc...@gmail.com:
On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine j.ballant...@gmail.comwrote:
My /var/db/pkg has become corrupt, and I can't find an archive of it to
install in it's place. Does one exist and if so where? If not any ideas
on
how to rebuild the db?
J. Hellenthal jh...@dataix.net writes:
[...]
@@ -33,7 +33,8 @@
new_bak_file=`mktemp ${bak_file}-X`
- if tar -cjf ${new_bak_file} $pkg_dbdir; then
+ cd $pkg_dbdir/..
+ if tar -cjf ${new_bak_file} $(basename $pkg_dbdir); then
Why not use `-s' (substitution) option
On Fri, Apr 15, 2011 at 12:57:15PM +0400, Pan Tsu wrote:
J. Hellenthal jh...@dataix.net writes:
[...]
@@ -33,7 +33,8 @@
new_bak_file=`mktemp ${bak_file}-X`
-if tar -cjf ${new_bak_file} $pkg_dbdir; then
+cd $pkg_dbdir/..
+if tar -cjf ${new_bak_file} $(basename
On 04/15/2011 02:30, J. Hellenthal wrote:
PS: The PR says this was committed... It was not AFAIK.
I committed the script itself, which is why I picked up the PR.
This is an excellent example of a bikeshed issue since it's something
simple enough that everyone feels qualified to offer an
Submitter-Id: current-users
Originator:J. Hellenthal
Organization:
Confidential: no
Synopsis: Make 220.backup-pkgdb cd(1) and backup only the package
database.
Severity: non-critical
Priority: medium
Category: conf
Class: change-request
Release: FreeBSD
12 matches
Mail list logo