Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2023 14:29:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 269810] ports-mgmt/pkg: how to restore pkg database
Message-ID:  <bug-269810-32340-uqkh9UQF7x@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269810-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269810-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269810

--- Comment #2 from mfv@bway.net ---
Hello Graham,

Thanks for the quick response.  I tried: 'xzcat /var/backups/pkg.sql.xz | p=
kg
shell'

but ended up with the exact same result.  Here is a directory listing of
/var/db/pkg:

-rw-r--r--  1 root  wheel         158  2023.Feb.16  19:56:30  FreeBSD.meta
-rw-r--r--  1 root  wheel  58,900,480  2023.Feb.25  08:53:06  local.sqlite
-rw-r--r--  1 root  wheel  63,741,952  2023.Feb.23  13:13:34  local.sqlite.=
one
-rw-r--r--  1 root  wheel  54,980,608  2023.Feb.16  19:56:30=20
repo-FreeBSD.sqlite
-rw-r--r--  1 root  wheel           0  2023.Feb.18  09:46:13=20
repo-FreeBSD.sqlite-journal
-r--r--r--  1 root  wheel   7,449,709  2023.Feb.25  07:51:28  vuln.xml
-r--r--r--  1 root  wheel   6,316,391  2020.Aug.25  16:53:50  vuln.xml.org

local.sqlite.one is the original file and local.sqlite was created by the x=
zcat
command.  There original file is 4,841,472 bytes larger than the file creat=
ed
by '/usr/local/etc/periodic/daily/411.pkg-backup'.

Let me know if I should send additionl data/information.

Cheers ...
Marek

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269810-32340-uqkh9UQF7x>