system backups (was: Package database)

2013-09-08 Thread David Magda
On Sep 6, 2013, at 12:23, Jim Ballantine 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 to everyone about th

Re: Fwd: Package database

2013-09-06 Thread Jim Ballantine
ender and not cc, >> it also seems to top post. >> >> -- Forwarded message -- >> From: Jim Ballantine >> Date: Wed, Sep 4, 2013 at 3:09 PM >> Subject: Re: Package database >> To: Freddie Cash >> >> >> I looked in /var/db and th

Re: Fwd: Package database

2013-09-06 Thread Ronald Klop
ed message -- From: Jim Ballantine Date: Wed, Sep 4, 2013 at 3:09 PM Subject: Re: Package database To: Freddie Cash 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, 2013 at 1:46 PM, Jim Ballantine wrote: I&#

Fwd: Package database

2013-09-05 Thread Jim Ballantine
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 Date: Wed, Sep 4, 2013 at 3:09 PM Subject: Re: Package database To: Freddie Cash I looked in /var/db and there is not dir

Re: Package database

2013-09-04 Thread Ben Morrow
Quoth Freddie Cash : > On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine wrote: > > > 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 th

Re: Package database

2013-09-04 Thread Florent Peterschmitt
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 withou

Re: Package database

2013-09-04 Thread Freddie Cash
On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine wrote: > 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_* tools? Meaning, is you

Package database

2013-09-04 Thread Jim Ballantine
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 http://lists.fr

Re: conf/156396: Make 220.backup-pkgdb cd(1) and backup only the package database.

2011-04-15 Thread Doug Barton
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 opini

Re: conf/156396: Make 220.backup-pkgdb cd(1) and backup only the package database.

2011-04-15 Thread J. Hellenthal
On Fri, Apr 15, 2011 at 12:57:15PM +0400, Pan Tsu wrote: >"J. Hellenthal" 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}" "$(basen

Re: conf/156396: Make 220.backup-pkgdb cd(1) and backup only the package database.

2011-04-15 Thread Pan Tsu
"J. Hellenthal" 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

Make 220.backup-pkgdb cd(1) and backup only the package database.

2011-04-14 Thread J. Hellenthal
>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: