Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2012 00:52:54 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-projects@freebsd.org
Subject:   svn commit: r40021 - projects/pkgng/en_US.ISO8859-1/books/handbook/ports
Message-ID:  <201211160052.qAG0qsFL087062@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Fri Nov 16 00:52:53 2012
New Revision: 40021
URL: http://svnweb.freebsd.org/changeset/doc/40021

Log:
  Document pkg-backup.

Modified:
  projects/pkgng/en_US.ISO8859-1/books/handbook/ports/chapter.xml

Modified: projects/pkgng/en_US.ISO8859-1/books/handbook/ports/chapter.xml
==============================================================================
--- projects/pkgng/en_US.ISO8859-1/books/handbook/ports/chapter.xml	Fri Nov 16 00:04:06 2012	(r40020)
+++ projects/pkgng/en_US.ISO8859-1/books/handbook/ports/chapter.xml	Fri Nov 16 00:52:53 2012	(r40021)
@@ -923,6 +923,41 @@ The autoremoval will free 723 kB
 Proceed with autoremoval of packages [y/N]: <userinput>y</userinput>
 Deinstalling ca_root_nss-3.13.5... done</screen>
       </sect3>
+
+      <sect3 id="pkgng-backup">
+	<title>Backing Up the <application>pkgng</application> Package
+	  Database</title>
+
+	<para>Unlike the <application>pkg_install</application>
+	  package management system, <application>pkgng</application>
+	  includes its own package database backup mechanism.  To
+	  manually backup the package database contents, run:</para>
+
+	<screen>&prompt.root; <userinput>pkg backup -d <replaceable>pkgng.db</replacable></userinput></screen>
+	<note>
+	  <para>Replace the file name
+	    <replaceable>pkgng.db</replaceable> to a suitable file
+	    name.</para>
+	</note>
+
+	<para>Additionally, <application>pkgng</application> includes
+	  a &man.periodic.conf.5; script to automatically backup the
+	  package database daily if
+	  <literal>daily_backup_pkgng_enable</literal> is set to
+	  <literal>YES</literal> in &man.periodic.conf.5;.</para>
+
+	<tip>
+	  <para>To avoid the <application>pkg_install</application>
+	    periodic script from also backing up the package database,
+	    set <literal>daily_backup_pkgdb_enable</literal> to
+	    <literal>NO</literal> in &man.periodic.conf.5;.</para>
+	</tip>
+
+	<para>To restore the contents of a previous package database
+	  backup, run:</para>
+
+	<screen>&prompt.root; <userinput>pkg backup -r <replaceable>/path/to/pkgng.db</replaceable></userinput></screen>
+      </sect3>
     </sect2>
   </sect1><!-- PKGNG -->
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211160052.qAG0qsFL087062>