[Bug 262337] ports-mgmt/pkg restore fails when created by periodic in /var/backups

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 23 Mar 2022 18:39:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262337

--- Comment #1 from Henrik Rosenke <rosenke@dssgmbh.de> ---
This couldnt work this way as i noticed now. 
The 'pkg backup' command and the 411.pkg-backup script produce 2 different
backup archives.

The right way to restore a backup from the periodic is:
rm /var/db/pkg/local_sqlite
xzcat /var/backup/pkg.sql.xz | pkg shell 

I cant find these documented anywhere, this should be noted in either
411.pkg-backup or the pkg-backup manpage.

-- 
You are receiving this mail because:
You are the assignee for the bug.