diff --git a/en_US.ISO8859-1/books/handbook/ports/chapter.xml b/en_US.ISO8859-1/books/handbook/ports/chapter.xml index a554e18f51..52fefbdba9 100644 --- a/en_US.ISO8859-1/books/handbook/ports/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/ports/chapter.xml @@ -854,34 +854,38 @@ Deinstalling ca_root_nss-3.15.1_1... done - 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