Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit 4a0d3a3

Browse files
committed
docs: add datastore.cfg.5 man page
1 parent 2322a98 commit 4a0d3a3

File tree

4 files changed

+64
-5
lines changed

4 files changed

+64
-5
lines changed

debian/proxmox-backup-server.install

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ usr/share/man/man1/proxmox-backup-manager.1
2020
usr/share/man/man1/proxmox-backup-proxy.1
2121
usr/share/man/man1/pmtx.1
2222
usr/share/man/man1/pmt.1
23+
usr/share/man/man5/datastore.cfg.5
2324
usr/share/zsh/vendor-completions/_proxmox-backup-manager
2425
usr/share/zsh/vendor-completions/_pmtx
2526
usr/share/zsh/vendor-completions/_pmt

defines.mk

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LIBDIR = $(PREFIX)/lib
55
LIBEXECDIR = $(LIBDIR)
66
DATAROOTDIR = $(PREFIX)/share
77
MAN1DIR = $(PREFIX)/share/man/man1
8+
MAN5DIR = $(PREFIX)/share/man/man5
89
DOCDIR = $(PREFIX)/share/doc/proxmox-backup
910
JSDIR = $(DATAROOTDIR)/javascript/proxmox-backup
1011
SYSCONFDIR = /etc

docs/Makefile

+16-5
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@ GENERATED_SYNOPSIS := \
88
pmtx/synopsis.rst \
99
pmt/synopsis.rst \
1010
backup-protocol-api.rst \
11-
reader-protocol-api.rst
11+
reader-protocol-api.rst \
12+
config/datastore/config.rst
1213

13-
MANUAL_PAGES := \
14+
MAN1_PAGES := \
1415
pxar.1 \
1516
pmtx.1 \
1617
pmt.1 \
1718
proxmox-backup-proxy.1 \
1819
proxmox-backup-client.1 \
1920
proxmox-backup-manager.1
2021

22+
MAN5_PAGES := \
23+
datastore.cfg.5
24+
2125
PRUNE_SIMULATOR_FILES := \
2226
prune-simulator/index.html \
2327
prune-simulator/documentation.html \
@@ -53,7 +57,7 @@ endif
5357
# Sphinx internal variables.
5458
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) .
5559

56-
all: ${MANUAL_PAGES}
60+
all: ${MAN1_PAGES} ${MAN5_PAGES}
5761

5862
# Extract backup protocol docs
5963
backup-protocol-api.rst: ${COMPILEDIR}/dump-backup-api
@@ -85,6 +89,11 @@ pmt/synopsis.rst: ${COMPILEDIR}/pmt
8589
pmt.1: pmt/man1.rst pmt/description.rst pmt/synopsis.rst
8690
rst2man $< >$@
8791

92+
config/datastore/config.rst: ${COMPILEDIR}/docgen
93+
${COMPILEDIR}/docgen datastore.cfg >$@
94+
95+
datastore.cfg.5: config/datastore/man5.rst config/datastore/config.rst
96+
rst2man $< >$@
8897

8998
proxmox-backup-client/synopsis.rst: ${COMPILEDIR}/proxmox-backup-client
9099
${COMPILEDIR}/proxmox-backup-client printdoc > proxmox-backup-client/synopsis.rst
@@ -139,9 +148,11 @@ clean:
139148
rm -r -f *~ *.1 ${BUILDDIR} ${GENERATED_SYNOPSIS}
140149

141150

142-
install_manual_pages: ${MANUAL_PAGES}
151+
install_manual_pages: ${MAN1_PAGES} ${MAN5_PAGES}
143152
install -dm755 $(DESTDIR)$(MAN1DIR)
144-
for i in ${MANUAL_PAGES}; do install -m755 $$i $(DESTDIR)$(MAN1DIR)/ ; done
153+
for i in ${MAN1_PAGES}; do install -m755 $$i $(DESTDIR)$(MAN1DIR)/ ; done
154+
install -dm755 $(DESTDIR)$(MAN5DIR)
155+
for i in ${MAN5_PAGES}; do install -m755 $$i $(DESTDIR)$(MAN5DIR)/ ; done
145156

146157
install_html: html
147158
install -dm755 $(DESTDIR)$(DOCDIR)

docs/config/datastore/man5.rst

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
==========================
2+
datastore.cfg
3+
==========================
4+
5+
.. include:: ../../epilog.rst
6+
7+
-------------------------------------------------------------
8+
Datastore Configuration
9+
-------------------------------------------------------------
10+
11+
:Author: |AUTHOR|
12+
:Version: Version |VERSION|
13+
:Manual section: 5
14+
15+
Description
16+
===========
17+
18+
The file /etc/proxmox-backup/datastore.cfg is a configuration file for Proxmox
19+
Backup Server. It contains the Datastore configuration.
20+
21+
File Format
22+
===========
23+
24+
The file contains a list of datastore configuration sections. Each
25+
section starts with a header ``datastore: <name>``, followed by the
26+
datastore configuration options.
27+
28+
::
29+
30+
datastore: <name1>
31+
path <path1>
32+
<option1> <value1>
33+
...
34+
35+
datastore: <name2>
36+
path <path2>
37+
...
38+
39+
40+
Options
41+
=======
42+
43+
.. include:: config.rst
44+
45+
46+
.. include:: ../../pbs-copyright.rst

0 commit comments

Comments
 (0)