Skip to content

Commit

Permalink
bareos-dbcopy: docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 31, 2020
1 parent a648801 commit 45965ad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/manuals/source/conf.py
Expand Up @@ -242,7 +242,7 @@

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(man_bareos_dbcopy, "bareos-dbcopy", "bareos-dbcopy", [author], 8)]
man_pages = [(man_bareos_dbcopy, "bareos-dbcopy", "Copy the Bareos catalog database between catalog backends", [author], 8)]


# -- Options for Texinfo output -------------------------------------------
Expand Down
22 changes: 14 additions & 8 deletions docs/manuals/source/man/bareos-dbcopy.rst
Expand Up @@ -19,15 +19,27 @@ Description
for both ``<sourcecatalog>`` and ``<destinationcatalog>`` must exist.

The main use of :program:`bareos-dbcopy` is to migrate an existing Bareos
installation from a mysql/mariadb catalog to postgresql.
installation from mysql to postgresql.

:program:`bareos-dbcopy` only copies the data over to the new catalog.
The ``<destinationcatalog>`` needs to be created and initialized with the
correct tables and columns via :program:`create_bareos_database`,
:program:`make_bareos_tables` and :program:`grant_bareos_privileges`.

Both ``sourcecatalog`` and ``destinationcatalog`` need to have the same database
scheme version, i.e. have the schema from the identical Bareos version..
scheme version, i.e. have the schema from the identical Bareos version.

Internal workflow
-----------------
* :program:`bareos-dbcopy` scans both the source and destination database for
existing tables and column definitions.

* For each table, each row is transferred from the source to the destination
database. Depending on the column type, data filters are applied.

* Tables exiting on the source side but not on the destination side are skipped.

* If the destination table already contains data, the table is skipped.

Options
-------
Expand All @@ -39,12 +51,6 @@ Options
bareos-dbcopy reads the director configuration from the given
<configuration directory> instead of :file:`/etc/bareos`

.. option:: -e

Examine and verify every single data record of each table after
copying. This can take a very long time. Without -e, only the first
and last record of each database is examined and verified.

.. option:: -?

Prints usage information

0 comments on commit 45965ad

Please sign in to comment.