From 4a0d3a3e3f273bc0cba789ab2aea33974ece1169 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 10 Feb 2021 10:33:30 +0100 Subject: [PATCH] docs: add datastore.cfg.5 man page --- debian/proxmox-backup-server.install | 1 + defines.mk | 1 + docs/Makefile | 21 ++++++++++--- docs/config/datastore/man5.rst | 46 ++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 docs/config/datastore/man5.rst diff --git a/debian/proxmox-backup-server.install b/debian/proxmox-backup-server.install index 8f877e25..b079be4d 100644 --- a/debian/proxmox-backup-server.install +++ b/debian/proxmox-backup-server.install @@ -20,6 +20,7 @@ usr/share/man/man1/proxmox-backup-manager.1 usr/share/man/man1/proxmox-backup-proxy.1 usr/share/man/man1/pmtx.1 usr/share/man/man1/pmt.1 +usr/share/man/man5/datastore.cfg.5 usr/share/zsh/vendor-completions/_proxmox-backup-manager usr/share/zsh/vendor-completions/_pmtx usr/share/zsh/vendor-completions/_pmt diff --git a/defines.mk b/defines.mk index c44ac3bf..cd5b52a2 100644 --- a/defines.mk +++ b/defines.mk @@ -5,6 +5,7 @@ LIBDIR = $(PREFIX)/lib LIBEXECDIR = $(LIBDIR) DATAROOTDIR = $(PREFIX)/share MAN1DIR = $(PREFIX)/share/man/man1 +MAN5DIR = $(PREFIX)/share/man/man5 DOCDIR = $(PREFIX)/share/doc/proxmox-backup JSDIR = $(DATAROOTDIR)/javascript/proxmox-backup SYSCONFDIR = /etc diff --git a/docs/Makefile b/docs/Makefile index c80cc078..9960a720 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -8,9 +8,10 @@ GENERATED_SYNOPSIS := \ pmtx/synopsis.rst \ pmt/synopsis.rst \ backup-protocol-api.rst \ - reader-protocol-api.rst + reader-protocol-api.rst \ + config/datastore/config.rst -MANUAL_PAGES := \ +MAN1_PAGES := \ pxar.1 \ pmtx.1 \ pmt.1 \ @@ -18,6 +19,9 @@ MANUAL_PAGES := \ proxmox-backup-client.1 \ proxmox-backup-manager.1 +MAN5_PAGES := \ + datastore.cfg.5 + PRUNE_SIMULATOR_FILES := \ prune-simulator/index.html \ prune-simulator/documentation.html \ @@ -53,7 +57,7 @@ endif # Sphinx internal variables. ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) . -all: ${MANUAL_PAGES} +all: ${MAN1_PAGES} ${MAN5_PAGES} # Extract backup protocol docs backup-protocol-api.rst: ${COMPILEDIR}/dump-backup-api @@ -85,6 +89,11 @@ pmt/synopsis.rst: ${COMPILEDIR}/pmt pmt.1: pmt/man1.rst pmt/description.rst pmt/synopsis.rst rst2man $< >$@ +config/datastore/config.rst: ${COMPILEDIR}/docgen + ${COMPILEDIR}/docgen datastore.cfg >$@ + +datastore.cfg.5: config/datastore/man5.rst config/datastore/config.rst + rst2man $< >$@ proxmox-backup-client/synopsis.rst: ${COMPILEDIR}/proxmox-backup-client ${COMPILEDIR}/proxmox-backup-client printdoc > proxmox-backup-client/synopsis.rst @@ -139,9 +148,11 @@ clean: rm -r -f *~ *.1 ${BUILDDIR} ${GENERATED_SYNOPSIS} -install_manual_pages: ${MANUAL_PAGES} +install_manual_pages: ${MAN1_PAGES} ${MAN5_PAGES} install -dm755 $(DESTDIR)$(MAN1DIR) - for i in ${MANUAL_PAGES}; do install -m755 $$i $(DESTDIR)$(MAN1DIR)/ ; done + for i in ${MAN1_PAGES}; do install -m755 $$i $(DESTDIR)$(MAN1DIR)/ ; done + install -dm755 $(DESTDIR)$(MAN5DIR) + for i in ${MAN5_PAGES}; do install -m755 $$i $(DESTDIR)$(MAN5DIR)/ ; done install_html: html install -dm755 $(DESTDIR)$(DOCDIR) diff --git a/docs/config/datastore/man5.rst b/docs/config/datastore/man5.rst new file mode 100644 index 00000000..a01b6895 --- /dev/null +++ b/docs/config/datastore/man5.rst @@ -0,0 +1,46 @@ +========================== +datastore.cfg +========================== + +.. include:: ../../epilog.rst + +------------------------------------------------------------- +Datastore Configuration +------------------------------------------------------------- + +:Author: |AUTHOR| +:Version: Version |VERSION| +:Manual section: 5 + +Description +=========== + +The file /etc/proxmox-backup/datastore.cfg is a configuration file for Proxmox +Backup Server. It contains the Datastore configuration. + +File Format +=========== + +The file contains a list of datastore configuration sections. Each +section starts with a header ``datastore: ``, followed by the +datastore configuration options. + +:: + + datastore: + path + + ... + + datastore: + path + ... + + +Options +======= + +.. include:: config.rst + + +.. include:: ../../pbs-copyright.rst