Skip to content

Commit

Permalink
build_man
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Feb 24, 2019
1 parent bece7e8 commit 032a4ef
Show file tree
Hide file tree
Showing 33 changed files with 250 additions and 109 deletions.
10 changes: 2 additions & 8 deletions docs/man/borg-benchmark-crud.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-BENCHMARK-CRUD 1 "2017-11-25" "" "borg backup tool"
.TH BORG-BENCHMARK-CRUD 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-benchmark-crud \- Benchmark Create, Read, Update, Delete for archives.
.
Expand Down Expand Up @@ -39,7 +39,7 @@ This command benchmarks borg CRUD (create, read, update, delete) operations.
.sp
It creates input data below the given PATH and backups this data into the given REPO.
The REPO must already exist (it could be a fresh empty repo or an existing repo, the
command will create / read / update / delete some archives named borg\-test\-data* there.
command will create / read / update / delete some archives named borg\-benchmark\-crud* there.
.sp
Make sure you have free space there, you\(aqll need about 1GB each (+ overhead).
.sp
Expand All @@ -60,13 +60,7 @@ C\-R\- == random files. no dedup, measuring throughput through all processing st
.B R\- == borg extract (extract archive, dry\-run, do everything, but do not write files to disk)
R\-Z\- == all zero files. Measuring heavily duplicated files.
R\-R\- == random files. No duplication here, measuring throughput through all processing
.IP "System Message: ERROR/3 (docs/virtmanpage.rst:, line 56)"
Unexpected indentation.
.INDENT 7.0
.INDENT 3.5
stages, except writing to disk.
.UNINDENT
.UNINDENT
.TP
.B U\- == borg create (2nd archive creation of unchanged input files, measure files cache speed)
The throughput value is kind of virtual here, it does not actually read the file.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-benchmark.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-BENCHMARK 1 "2017-11-25" "" "borg backup tool"
.TH BORG-BENCHMARK 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-benchmark \- benchmark command
.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-break-lock.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-BREAK-LOCK 1 "2017-11-25" "" "borg backup tool"
.TH BORG-BREAK-LOCK 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-break-lock \- Break the repository lock (e.g. in case it was left by a dead borg.
.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-check.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-CHECK 1 "2017-11-25" "" "borg backup tool"
.TH BORG-CHECK 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-check \- Check repository consistency
.
Expand Down
5 changes: 4 additions & 1 deletion docs/man/borg-common.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-COMMON 1 "2017-11-25" "" "borg backup tool"
.TH BORG-COMMON 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-common \- Common options of Borg commands
.
Expand Down Expand Up @@ -83,6 +83,9 @@ treat part files like normal files (e.g. to list/extract them)
.TP
.BI \-\-debug\-profile \ FILE
Write execution profile in Borg format into FILE. For local use a Python\-compatible file can be generated by suffixing FILE with ".pyprof".
.TP
.BI \-\-rsh \ RSH
Use this command to connect to the \(aqborg serve\(aq process (default: \(aqssh\(aq)
.UNINDENT
.SH SEE ALSO
.sp
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-compact.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-COMPACT 1 "2018-07-14" "" "borg backup tool"
.TH BORG-COMPACT 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-compact \- compact segment files in the repository
.
Expand Down
12 changes: 10 additions & 2 deletions docs/man/borg-compression.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-COMPRESSION 1 "2017-11-25" "" "borg backup tool"
.TH BORG-COMPRESSION 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-compression \- Details regarding compression
.
Expand Down Expand Up @@ -50,7 +50,13 @@ Valid compression specifiers are:
Do not compress.
.TP
.B lz4
Use lz4 compression. High speed, low compression. (default)
Use lz4 compression. Very high speed, very low compression. (default)
.TP
.B zstd[,L]
Use zstd ("zstandard") compression, a modern wide\-range algorithm.
If you do not explicitly give the compression level L (ranging from 1
to 22), it will use level 3.
Archives compressed with zstd are not compatible with borg < 1.1.4.
.TP
.B zlib[,L]
Use zlib ("gz") compression. Medium speed, medium compression.
Expand Down Expand Up @@ -82,6 +88,8 @@ Examples:
.nf
.ft C
borg create \-\-compression lz4 REPO::ARCHIVE data
borg create \-\-compression zstd REPO::ARCHIVE data
borg create \-\-compression zstd,10 REPO::ARCHIVE data
borg create \-\-compression zlib REPO::ARCHIVE data
borg create \-\-compression zlib,1 REPO::ARCHIVE data
borg create \-\-compression auto,lzma,6 REPO::ARCHIVE data
Expand Down
17 changes: 11 additions & 6 deletions docs/man/borg-config.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-CONFIG 1 "2017-12-13" "" "borg backup tool"
.TH BORG-CONFIG 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-config \- get, set, and delete values in a repository or cache config file
.
Expand Down Expand Up @@ -32,16 +32,18 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
..
.SH SYNOPSIS
.sp
borg [common options] config [options] REPOSITORY NAME [VALUE]
borg [common options] config [options] REPOSITORY [NAME] [VALUE]
.SH DESCRIPTION
.sp
This command gets and sets options in a local repository or cache config file.
For security reasons, this command only works on local repositories.
.sp
To delete a config value entirely, use \fB\-\-delete\fP\&. To get an existing key, pass
only the key name. To set a key, pass both the key name and the new value. Keys
can be specified in the format "section.name" or simply "name"; the section will
default to "repository" and "cache" for the repo and cache configs, respectively.
To delete a config value entirely, use \fB\-\-delete\fP\&. To list the values
of the configuration file or the default values, use \fB\-\-list\fP\&. To get and existing
key, pass only the key name. To set a key, pass both the key name and
the new value. Keys can be specified in the format "section.name" or
simply "name"; the section will default to "repository" and "cache" for
the repo and cache configs, respectively.
.sp
By default, borg config manipulates the repository config file. Using \fB\-\-cache\fP
edits the repository cache\(aqs config file instead.
Expand All @@ -68,6 +70,9 @@ get and set values from the repo cache
.TP
.B \-d\fP,\fB \-\-delete
delete the key from the config file
.TP
.B \-l\fP,\fB \-\-list
list the configuration of the repo
.UNINDENT
.SH EXAMPLES
.sp
Expand Down
21 changes: 9 additions & 12 deletions docs/man/borg-create.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-CREATE 1 "2017-11-25" "" "borg backup tool"
.TH BORG-CREATE 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-create \- Create new archive
.
Expand Down Expand Up @@ -149,8 +149,8 @@ output stats as JSON. Implies \fB\-\-stats\fP\&.
.B \-\-no\-cache\-sync
experimental: do not synchronize the cache. Implies not using the files cache.
.TP
.B \-\-no\-files\-cache
do not load/update the file metadata cache used to detect unchanged files
.BI \-\-stdin\-name \ NAME
use NAME in archive for stdin data (default: "stdin")
.UNINDENT
.SS Exclusion options
.INDENT 0.0
Expand All @@ -168,12 +168,12 @@ experimental: include/exclude paths matching PATTERN
experimental: read include/exclude patterns from PATTERNFILE, one per line
.TP
.B \-\-exclude\-caches
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.brynosaurus.com/cachedir/spec.html\fP)
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.bford.info/cachedir/spec.html\fP)
.TP
.BI \-\-exclude\-if\-present \ NAME
exclude directories that are tagged by containing a filesystem object with the given NAME
.TP
.B \-\-keep\-exclude\-tags\fP,\fB \-\-keep\-tag\-files
.B \-\-keep\-exclude\-tags
if tag objects are specified with \fB\-\-exclude\-if\-present\fP, don\(aqt omit the tag objects themselves from the backup archive
.TP
.B \-\-exclude\-nodump
Expand All @@ -200,9 +200,6 @@ do not store birthtime (creation date) into archive
.B \-\-nobsdflags
do not read and store bsdflags (e.g. NODUMP, IMMUTABLE) into archive
.TP
.B \-\-ignore\-inode
ignore inode data in the file metadata cache used to detect unchanged files.
.TP
.BI \-\-files\-cache \ MODE
operate files cache in MODE. default: ctime,size,inode
.TP
Expand All @@ -222,7 +219,7 @@ manually specify the archive creation date/time (UTC, yyyy\-mm\-ddThh:mm:ss form
write checkpoint every SECONDS seconds (Default: 1800)
.TP
.BI \-\-chunker\-params \ PARAMS
specify the chunker parameters (CHUNK_MIN_EXP, CHUNK_MAX_EXP, HASH_MASK_BITS, HASH_WINDOW_SIZE). default: 19,23,21,4095
specify the chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, HASH_MASK_BITS, HASH_WINDOW_SIZE). default: buzhash,19,23,21,4095
.TP
.BI \-C \ COMPRESSION\fP,\fB \ \-\-compression \ COMPRESSION
select compression algorithm, see the output of the "borg help compression" command for details.
Expand Down Expand Up @@ -252,7 +249,7 @@ $ borg create /path/to/repo::my\-files /home \e

# Backup the root filesystem into an archive named "root\-YYYY\-MM\-DD"
# use zlib compression (good, but slow) \- default is lz4 (fast, low compression ratio)
$ borg create \-C zlib,6 /path/to/repo::root\-{now:%Y\-%m\-%d} / \-\-one\-file\-system
$ borg create \-C zlib,6 \-\-one\-file\-system /path/to/repo::root\-{now:%Y\-%m\-%d} /

# Backup a remote host locally ("pull" style) using sshfs
$ mkdir sshfs\-mount
Expand All @@ -265,10 +262,10 @@ $ fusermount \-u sshfs\-mount
# Make a big effort in fine granular deduplication (big chunk management
# overhead, needs a lot of RAM and disk space, see formula in internals
# docs \- same parameters as borg < 1.0 or attic):
$ borg create \-\-chunker\-params 10,23,16,4095 /path/to/repo::small /smallstuff
$ borg create \-\-chunker\-params buzhash,10,23,16,4095 /path/to/repo::small /smallstuff

# Backup a raw device (must not be active/in use/mounted at that time)
$ dd if=/dev/sdx bs=10M | borg create /path/to/repo::my\-sdx \-
$ dd if=/dev/sdx bs=4M | borg create \-\-chunker\-params fixed,4194304 /path/to/repo::my\-sdx \-

# No compression (none)
$ borg create \-\-compression none /path/to/repo::arch ~
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-delete.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-DELETE 1 "2018-07-14" "" "borg backup tool"
.TH BORG-DELETE 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-delete \- Delete an existing repository or archives
.
Expand Down
8 changes: 4 additions & 4 deletions docs/man/borg-diff.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-DIFF 1 "2017-11-25" "" "borg backup tool"
.TH BORG-DIFF 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-diff \- Diff contents of two archives
.
Expand Down Expand Up @@ -32,12 +32,12 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
..
.SH SYNOPSIS
.sp
borg [common options] diff [options] REPO_ARCHIVE1 ARCHIVE2 [PATH...]
borg [common options] diff [options] REPO::ARCHIVE1 ARCHIVE2 [PATH...]
.SH DESCRIPTION
.sp
This command finds differences (file contents, user/group/mode) between archives.
.sp
A repository location and an archive name must be specified for REPO_ARCHIVE1.
A repository location and an archive name must be specified for REPO::ARCHIVE1.
ARCHIVE2 is just another archive name in same repository (no repository location
allowed).
.sp
Expand All @@ -57,7 +57,7 @@ See \fIborg\-common(1)\fP for common options of Borg commands.
.SS arguments
.INDENT 0.0
.TP
.B REPO_ARCHIVE1
.B REPO::ARCHIVE1
repository location and ARCHIVE1 name
.TP
.B ARCHIVE2
Expand Down
8 changes: 4 additions & 4 deletions docs/man/borg-export-tar.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-EXPORT-TAR 1 "2017-11-25" "" "borg backup tool"
.TH BORG-EXPORT-TAR 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-export-tar \- Export archive contents as a tarball
.
Expand Down Expand Up @@ -127,11 +127,11 @@ $ borg export\-tar /path/to/repo::Monday Monday.tar
$ borg export\-tar /path/to/repo::Monday Monday.tar.gz \-\-exclude \(aq*.so\(aq

# use higher compression level with gzip
$ borg export\-tar testrepo::linux \-\-tar\-filter="gzip \-9" Monday.tar.gz
$ borg export\-tar \-\-tar\-filter="gzip \-9" testrepo::linux Monday.tar.gz

# export a gzipped tar, but instead of storing it on disk,
# export a tar, but instead of storing it on disk,
# upload it to a remote site using curl.
$ borg export\-tar ... \-\-tar\-filter="gzip" \- | curl \-\-data\-binary @\- https://somewhere/to/POST
$ borg export\-tar /path/to/repo::Monday \- | curl \-\-data\-binary @\- https://somewhere/to/POST

# remote extraction via "tarpipe"
$ borg export\-tar /path/to/repo::Monday \- | ssh somewhere "cd extracted; tar x"
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-extract.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-EXTRACT 1 "2017-11-25" "" "borg backup tool"
.TH BORG-EXTRACT 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-extract \- Extract archive contents
.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-info.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-INFO 1 "2017-11-25" "" "borg backup tool"
.TH BORG-INFO 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-info \- Show archive details such as disk space used
.
Expand Down
7 changes: 5 additions & 2 deletions docs/man/borg-init.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-INIT 1 "2017-11-25" "" "borg backup tool"
.TH BORG-INIT 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-init \- Initialize an empty repository
.
Expand Down Expand Up @@ -182,10 +182,13 @@ repository to create
select encryption key mode \fB(required)\fP
.TP
.B \-\-append\-only
create an append\-only mode repository
create an append\-only mode repository. Note that this only affects the low level structure of the repository, and running \fIdelete\fP or \fIprune\fP will still be allowed. See \fIappend_only_mode\fP in Additional Notes for more details.
.TP
.BI \-\-storage\-quota \ QUOTA
Set storage quota of the new repository (e.g. 5G, 1.5T). Default: no quota.
.TP
.B \-\-make\-parent\-dirs
create the parent directories of the repository directory, if they are missing.
.UNINDENT
.SH EXAMPLES
.INDENT 0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-key-change-passphrase.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-CHANGE-PASSPHRASE 1 "2017-11-25" "" "borg backup tool"
.TH BORG-KEY-CHANGE-PASSPHRASE 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-key-change-passphrase \- Change repository key file passphrase
.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-key-export.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-EXPORT 1 "2017-11-25" "" "borg backup tool"
.TH BORG-KEY-EXPORT 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-key-export \- Export the repository key for backup
.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-key-import.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-IMPORT 1 "2017-11-25" "" "borg backup tool"
.TH BORG-KEY-IMPORT 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-key-import \- Import the repository key from backup
.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-key-migrate-to-repokey.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-MIGRATE-TO-REPOKEY 1 "2017-11-25" "" "borg backup tool"
.TH BORG-KEY-MIGRATE-TO-REPOKEY 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-key-migrate-to-repokey \- Migrate passphrase -> repokey
.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/borg-key.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY 1 "2017-11-25" "" "borg backup tool"
.TH BORG-KEY 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-key \- Manage a keyfile or repokey of a repository
.
Expand Down
6 changes: 5 additions & 1 deletion docs/man/borg-list.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-LIST 1 "2017-11-25" "" "borg backup tool"
.TH BORG-LIST 1 "2019-02-24" "" "borg backup tool"
.SH NAME
borg-list \- List archive or repository contents
.
Expand Down Expand Up @@ -169,6 +169,10 @@ start: time (start) of creation of the archive
time: alias of "start"
.IP \(bu 2
end: time (end) of creation of the archive
.IP \(bu 2
hostname: hostname of host on which this archive was created
.IP \(bu 2
username: username of user who created this archive
.UNINDENT
.sp
Keys for listing archive files:
Expand Down
Loading

0 comments on commit 032a4ef

Please sign in to comment.