From owner-svn-doc-all@FreeBSD.ORG Tue May 12 14:24:06 2015 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2DA6B887; Tue, 12 May 2015 14:24:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0F07B1410; Tue, 12 May 2015 14:24:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t4CEO5gd094284; Tue, 12 May 2015 14:24:05 GMT (envelope-from brd@FreeBSD.org) Received: (from brd@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t4CEO5VJ094283; Tue, 12 May 2015 14:24:05 GMT (envelope-from brd@FreeBSD.org) Message-Id: <201505121424.t4CEO5VJ094283@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: brd set sender to brd@FreeBSD.org using -f From: Brad Davis Date: Tue, 12 May 2015 14:24:05 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46682 - head/en_US.ISO8859-1/books/handbook/ports X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2015 14:24:06 -0000 Author: brd Date: Tue May 12 14:24:05 2015 New Revision: 46682 URL: https://svnweb.freebsd.org/changeset/doc/46682 Log: Reword the section about pkg backups to reflect that they are enabled by default now. Modified: head/en_US.ISO8859-1/books/handbook/ports/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/ports/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/ports/chapter.xml Tue May 12 10:27:17 2015 (r46681) +++ head/en_US.ISO8859-1/books/handbook/ports/chapter.xml Tue May 12 14:24:05 2015 (r46682) @@ -854,34 +854,38 @@ Deinstalling ca_root_nss-3.15.1_1... don - Backing Up the Package Database + Restoring the Package Database Unlike the traditional package management system, pkg includes its own package - database backup mechanism. To manually back up the contents - of the package database, run the following command, replacing - pkgng.db with a suitable file - name: - - &prompt.root; pkg backup -d pkgng.db - - Additionally, pkg includes - a &man.periodic.8; script to automatically perform a daily - back up of the package database. This functionality is - enabled if daily_backup_pkgdb_enable is - set to YES in &man.periodic.conf.5;. + database backup mechanism. This functionality is enabled by + default. To disable the periodic script from backing up the package database, set - daily_backup_pkgdb_enable to - NO in &man.periodic.conf.5;. + daily_backup_pkgdb_enable="NO" in + &man.periodic.conf.5;. To restore the contents of a previous package database - backup, run: + backup, run the following command replacing + /path/to/pkg.sql with the location of + the backup: - &prompt.root; pkg backup -r /path/to/pkgng.db + &prompt.root; pkg backup -r /path/to/pkg.sql + + + If restoring a backup taken by the periodic script, + it must be decompressed prior to be restored. + + + To run a manual backup of the + pkg database, run the following + command, replacing /path/to/pkg.sql + with a suitable file name and location: + + &prompt.root; pkg backup -d /path/to/pkg.sql