Skip to content

Commit 4550a49

Browse files
build_usage / build_man
1 parent 8d8fd59 commit 4550a49

71 files changed

Lines changed: 475 additions & 554 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/man/borg-analyze.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-ANALYZE" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-ANALYZE" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-analyze \- Analyze archives
3333
.SH SYNOPSIS

docs/man/borg-benchmark-cpu.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-BENCHMARK-CPU" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-BENCHMARK-CPU" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-benchmark-cpu \- Benchmark CPU bound operations.
3333
.SH SYNOPSIS

docs/man/borg-benchmark-crud.1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-BENCHMARK-CRUD" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-BENCHMARK-CRUD" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-benchmark-crud \- Benchmark Create, Read, Update, Delete for archives.
3333
.SH SYNOPSIS
@@ -47,11 +47,9 @@ If your repository is encrypted and borg needs a passphrase to unlock the key, u
4747
.INDENT 0.0
4848
.INDENT 3.5
4949
.sp
50-
.nf
51-
.ft C
50+
.EX
5251
BORG_PASSPHRASE=mysecret borg benchmark crud REPO PATH
53-
.ft P
54-
.fi
52+
.EE
5553
.UNINDENT
5654
.UNINDENT
5755
.sp

docs/man/borg-benchmark.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-BENCHMARK" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-BENCHMARK" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-benchmark \- benchmark command
3333
.SH SYNOPSIS

docs/man/borg-break-lock.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-BREAK-LOCK" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-BREAK-LOCK" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-break-lock \- Break the repository lock (e.g. in case it was left by a dead borg.
3333
.SH SYNOPSIS

docs/man/borg-check.1

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-CHECK" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-CHECK" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-check \- Check repository consistency
3333
.SH SYNOPSIS
@@ -44,7 +44,7 @@ the file magic headers, and both the metadata and data of all objects in
4444
the repository. The read data is checked by size and hash. Bit rot and other
4545
types of accidental damage can be detected this way. Running the repository
4646
check can be split into multiple partial checks using \fB\-\-max\-duration\fP\&.
47-
When checking a \fI\%ssh://\fP remote repository, please note that the checks run on
47+
When checking a <ssh://> remote repository, please note that the checks run on
4848
the server and do not cause significant network traffic.
4949
.IP 2. 3
5050
Checking consistency and correctness of the archive metadata and optionally
@@ -137,37 +137,16 @@ objects from the repository after it did a 2nd try to read them correctly.
137137
.IP 2. 3
138138
When checking the consistency and correctness of archives, repair mode might
139139
remove whole archives from the manifest if their archive metadata chunk is
140-
corrupt or lost. On a chunk level (i.e. the contents of files), repair mode
141-
will replace corrupt or lost chunks with a same\-size replacement chunk of
142-
zeroes. If a previously zeroed chunk reappears, repair mode will restore
143-
this lost chunk using the new chunk.
140+
corrupt or lost. Borg will also report files that reference missing chunks.
144141
.UNINDENT
145142
.sp
146-
Most steps taken by repair mode have a one\-time effect on the repository, like
147-
removing a lost archive from the repository. However, replacing a corrupt or
148-
lost chunk with an all\-zero replacement will have an ongoing effect on the
149-
repository: When attempting to extract a file referencing an all\-zero chunk,
150-
the \fBextract\fP command will distinctly warn about it. The FUSE filesystem
151-
created by the \fBmount\fP command will reject reading such a \(dqzero\-patched\(dq
152-
file unless a special mount option is given.
153-
.sp
154-
As mentioned earlier, Borg might be able to \(dqheal\(dq a \(dqzero\-patched\(dq file in
155-
repair mode, if all its previously lost chunks reappear (e.g. via a later
156-
backup). This is achieved by Borg not only keeping track of the all\-zero
157-
replacement chunks, but also by keeping metadata about the lost chunks. In
158-
repair mode Borg will check whether a previously lost chunk reappeared and will
159-
replace the all\-zero replacement chunk by the reappeared chunk. If all lost
160-
chunks of a \(dqzero\-patched\(dq file reappear, this effectively \(dqheals\(dq the file.
161-
Consequently, if lost chunks were repaired earlier, it is advised to run
162-
\fB\-\-repair\fP a second time after creating some new backups.
163-
.sp
164143
If \fB\-\-repair \-\-find\-lost\-archives\fP is given, previously lost entries will
165144
be recreated in the archive directory. This is only possible before
166145
\fBborg compact\fP would remove the archives\(aq data completely.
167146
.SH OPTIONS
168147
.sp
169148
See \fIborg\-common(1)\fP for common options of Borg commands.
170-
.SS optional arguments
149+
.SS options
171150
.INDENT 0.0
172151
.TP
173152
.B \-\-repository\-only

docs/man/borg-common.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-COMMON" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-COMMON" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-common \- Common options of Borg commands
3333
.SH SYNOPSIS

docs/man/borg-compact.1

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-COMPACT" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-COMPACT" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-compact \- Collect garbage in repository
3333
.SH SYNOPSIS
@@ -70,19 +70,36 @@ archives directory corruption. Such archives could potentially be restored with
7070
might not want to do that unless there are signs of lost archives (e.g. when
7171
seeing fatal errors when creating backups or when archives are missing in
7272
\fBborg repo\-list\fP).
73+
.sp
74+
When giving the \fB\-\-stats\fP option, borg will internally list all repository
75+
objects to determine their existence AND stored size. It will build a fresh
76+
chunks index from that information and cache it in the repository. For some
77+
types of repositories, this might be very slow. It will tell you the sum of
78+
stored object sizes, before and after compaction.
79+
.sp
80+
Without \fB\-\-stats\fP, borg will rely on the cached chunks index to determine
81+
existing object IDs (but there is no stored size information in the index,
82+
thus it can\(aqt compute before/after compaction size statistics).
7383
.SH OPTIONS
7484
.sp
7585
See \fIborg\-common(1)\fP for common options of Borg commands.
86+
.SS options
87+
.INDENT 0.0
88+
.TP
89+
.B \-n\fP,\fB \-\-dry\-run
90+
do nothing
91+
.TP
92+
.B \-s\fP,\fB \-\-stats
93+
print statistics (might be much slower)
94+
.UNINDENT
7695
.SH EXAMPLES
7796
.INDENT 0.0
7897
.INDENT 3.5
7998
.sp
80-
.nf
81-
.ft C
99+
.EX
82100
# compact segments and free repo disk space
83101
$ borg compact
84-
.ft P
85-
.fi
102+
.EE
86103
.UNINDENT
87104
.UNINDENT
88105
.SH SEE ALSO

docs/man/borg-compression.1

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-COMPRESSION" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-COMPRESSION" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-compression \- Details regarding compression
3333
.SH DESCRIPTION
@@ -103,69 +103,75 @@ Available factors:
103103
.INDENT 7.0
104104
.INDENT 3.5
105105
.sp
106-
.nf
107-
.ft C
106+
.EX
108107
1: 0.01 .. 100
109108
2: 0.1 .. 1,000
110109
3: 1 .. 10,000
111110
4: 10 .. 100,000
112111
5: 100 .. 1,000,000
113112
6: 1,000 .. 10,000,000
114-
.ft P
115-
.fi
113+
.EE
116114
.UNINDENT
117115
.UNINDENT
118116
.sp
119117
Example probabilities for SPEC \fB1\fP:
120118
.INDENT 7.0
121119
.INDENT 3.5
122120
.sp
123-
.nf
124-
.ft C
121+
.EX
125122
90 % 0.01 .. 0.1
126123
9 % 0.1 .. 1
127124
0.9 % 1 .. 10
128125
0.09% 10 .. 100
129-
.ft P
130-
.fi
126+
.EE
131127
.UNINDENT
132128
.UNINDENT
133129
.sp
134130
\fIRandomly sized padding up to the given size\fP (additive)
135131
.INDENT 7.0
136132
.INDENT 3.5
137133
.sp
138-
.nf
139-
.ft C
134+
.EX
140135
110: 1kiB (2 ^ (SPEC \- 100))
141136
\&...
142137
120: 1MiB
143138
\&...
144139
123: 8MiB (max.)
145-
.ft P
146-
.fi
140+
.EE
147141
.UNINDENT
148142
.UNINDENT
143+
.sp
144+
\fIPadmé padding\fP (deterministic)
145+
.INDENT 7.0
146+
.INDENT 3.5
147+
.sp
148+
.EX
149+
250: pads to sums of powers of 2, max 12% overhead
150+
.EE
151+
.UNINDENT
152+
.UNINDENT
153+
.sp
154+
Uses the Padmé algorithm to deterministically pad the compressed size to a sum of
155+
powers of 2, limiting overhead to 12%. See <https://lbarman.ch/blog/padme/> for details.
149156
.UNINDENT
150157
.sp
151158
Examples:
152159
.INDENT 0.0
153160
.INDENT 3.5
154161
.sp
155-
.nf
156-
.ft C
157-
borg create \-\-compression lz4 REPO::ARCHIVE data
158-
borg create \-\-compression zstd REPO::ARCHIVE data
159-
borg create \-\-compression zstd,10 REPO::ARCHIVE data
160-
borg create \-\-compression zlib REPO::ARCHIVE data
161-
borg create \-\-compression zlib,1 REPO::ARCHIVE data
162-
borg create \-\-compression auto,lzma,6 REPO::ARCHIVE data
162+
.EX
163+
borg create \-\-compression lz4 \-\-repo REPO ARCHIVE data
164+
borg create \-\-compression zstd \-\-repo REPO ARCHIVE data
165+
borg create \-\-compression zstd,10 \-\-repo REPO ARCHIVE data
166+
borg create \-\-compression zlib \-\-repo REPO ARCHIVE data
167+
borg create \-\-compression zlib,1 \-\-repo REPO ARCHIVE data
168+
borg create \-\-compression auto,lzma,6 \-\-repo REPO ARCHIVE data
163169
borg create \-\-compression auto,lzma ...
164170
borg create \-\-compression obfuscate,110,none ...
165171
borg create \-\-compression obfuscate,3,auto,zstd,10 ...
166172
borg create \-\-compression obfuscate,2,zstd,6 ...
167-
.ft P
168-
.fi
173+
borg create \-\-compression obfuscate,250,zstd,3 ...
174+
.EE
169175
.UNINDENT
170176
.UNINDENT
171177
.SH AUTHOR

docs/man/borg-create.1

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "BORG-CREATE" 1 "2024-11-16" "" "borg backup tool"
30+
.TH "BORG-CREATE" "1" "2025-04-21" "" "borg backup tool"
3131
.SH NAME
3232
borg-create \- Create new archive
3333
.SH SYNOPSIS
@@ -137,7 +137,7 @@ specify the archive name
137137
.B PATH
138138
paths to archive
139139
.UNINDENT
140-
.SS optional arguments
140+
.SS options
141141
.INDENT 0.0
142142
.TP
143143
.B \-n\fP,\fB \-\-dry\-run
@@ -195,7 +195,7 @@ include/exclude paths matching PATTERN
195195
read include/exclude patterns from PATTERNFILE, one per line
196196
.TP
197197
.B \-\-exclude\-caches
198-
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.bford.info/cachedir/spec.html\fP)
198+
exclude directories that contain a CACHEDIR.TAG file ( <http://www.bford.info/cachedir/spec.html> )
199199
.TP
200200
.BI \-\-exclude\-if\-present \ NAME
201201
exclude directories that are tagged by containing a filesystem object with the given NAME
@@ -261,16 +261,15 @@ select compression algorithm, see the output of the \(dqborg help compression\(d
261261
.INDENT 0.0
262262
.INDENT 3.5
263263
.sp
264-
.nf
265-
.ft C
264+
.EX
266265
# Backup ~/Documents into an archive named \(dqmy\-documents\(dq
267266
$ borg create my\-documents ~/Documents
268267
269268
# same, but list all files as we process them
270269
$ borg create \-\-list my\-documents ~/Documents
271270
272271
# Backup /mnt/disk/docs, but strip path prefix using the slashdot hack
273-
$ borg create /path/to/repo::docs /mnt/disk/./docs
272+
$ borg create \-\-repo /path/to/repo docs /mnt/disk/./docs
274273
275274
# Backup ~/Documents and ~/src but exclude pyc files
276275
$ borg create my\-files \e
@@ -340,8 +339,7 @@ $ find ~ \-size \-1000k \-print0 | borg create \e
340339
\-\-paths\-from\-stdin \e
341340
\-\-paths\-delimiter \(dq\e0\(dq \e
342341
smallfiles\-handle\-newline
343-
.ft P
344-
.fi
342+
.EE
345343
.UNINDENT
346344
.UNINDENT
347345
.SH NOTES
@@ -432,11 +430,9 @@ pipe directly to borg:
432430
.INDENT 0.0
433431
.INDENT 3.5
434432
.sp
435-
.nf
436-
.ft C
437-
backup\-vm \-\-id myvm \-\-stdout | borg create REPO::ARCHIVE \-
438-
.ft P
439-
.fi
433+
.EX
434+
backup\-vm \-\-id myvm \-\-stdout | borg create \-\-repo REPO ARCHIVE \-
435+
.EE
440436
.UNINDENT
441437
.UNINDENT
442438
.sp
@@ -447,11 +443,9 @@ to the command:
447443
.INDENT 0.0
448444
.INDENT 3.5
449445
.sp
450-
.nf
451-
.ft C
452-
borg create \-\-content\-from\-command REPO::ARCHIVE \-\- backup\-vm \-\-id myvm \-\-stdout
453-
.ft P
454-
.fi
446+
.EX
447+
borg create \-\-content\-from\-command \-\-repo REPO ARCHIVE \-\- backup\-vm \-\-id myvm \-\-stdout
448+
.EE
455449
.UNINDENT
456450
.UNINDENT
457451
.sp

0 commit comments

Comments
 (0)