@@ -27,9 +27,9 @@ 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" "2025-08-02 " "" "borg backup tool"
30+ .TH "BORG-CHECK" "1" "2025-12-23 " "" "borg backup tool"
3131.SH NAME
32- borg-check \- Check repository consistency
32+ borg-check \- Checks repository consistency.
3333.SH SYNOPSIS
3434.sp
3535borg [common options] check [options]
@@ -44,7 +44,7 @@ the file magic headers, and both the metadata and data of all objects in
4444the repository. The read data is checked by size and hash. Bit rot and other
4545types of accidental damage can be detected this way. Running the repository
4646check can be split into multiple partial checks using \fB \-\- max \- duration \fP \& .
47- When checking a <ssh://> remote repository, please note that the checks run on
47+ When checking an <ssh://> remote repository, please note that the checks run on
4848the server and do not cause significant network traffic.
4949.IP 2. 3
5050Checking consistency and correctness of the archive metadata and optionally
@@ -53,9 +53,9 @@ repository manifest exists, the archive metadata chunk is present, and that
5353all chunks referencing files (items) in the archive exist. This requires
5454reading archive and file metadata, but not data. To scan for archives whose
5555entries were lost from the archive directory, pass \fB \-\- find \- lost \- archives \fP \& .
56- It requires reading all data and is hence very time consuming.
56+ It requires reading all data and is hence very time\- consuming.
5757To additionally cryptographically verify the file (content) data integrity,
58- pass \fB \-\- verify \- data \fP , which is even more time consuming.
58+ pass \fB \-\- verify \- data \fP , which is even more time\- consuming.
5959.sp
6060When checking archives of a remote repository, archive checks run on the client
6161machine because they require decrypting data and therefore the encryption key.
@@ -66,7 +66,7 @@ repository checks only, or pass \fB\-\-archives\-only\fP to run the archive chec
6666only.
6767.sp
6868The \fB \-\- max \- duration \fP option can be used to split a long\- running repository
69- check into multiple partial checks. After the given number of seconds the check
69+ check into multiple partial checks. After the given number of seconds, the check
7070is interrupted. The next partial check will continue where the previous one
7171stopped, until the full repository has been checked. Assuming a complete check
7272would take 7 hours, then running a daily check with \fB \-\- max \- duration=3600 \fP
@@ -77,31 +77,31 @@ archive checks, nor enable repair mode. Consequently, if you want to use
7777\fB \-\- max \- duration \fP you must also pass \fB \-\- repository \- only \fP , and must not pass
7878\fB \-\- archives \- only \fP , nor \fB \-\- repair \fP \& .
7979.sp
80- \fB Warning: \fP Please note that partial repository checks (i.e. running it with
80+ \fB Warning: \fP Please note that partial repository checks (i.e., running with
8181\fB \-\- max \- duration \fP ) can only perform non\- cryptographic checksum checks on the
82- repository files. Enabling partial repository checks excepts archive checks
83- for the same reason. Therefore partial checks may be useful with very large
84- repositories only where a full check would take too long.
82+ repository files. Enabling partial repository checks excludes archive checks
83+ for the same reason. Therefore, partial checks may be useful only with very large
84+ repositories where a full check would take too long.
8585.sp
8686The \fB \-\- verify \- data \fP option will perform a full integrity verification (as
8787opposed to checking just the xxh64) of data, which means reading the
8888data from the repository, decrypting and decompressing it. It is a complete
89- cryptographic verification and hence very time consuming, but will detect any
89+ cryptographic verification and hence very time\- consuming, but will detect any
9090accidental and malicious corruption. Tamper\- resistance is only guaranteed for
91- encrypted repositories against attackers without access to the keys. You can
92- not use \fB \-\- verify \- data \fP with \fB \-\- repository \- only \fP \& .
91+ encrypted repositories against attackers without access to the keys. You cannot
92+ use \fB \-\- verify \- data \fP with \fB \-\- repository \- only \fP \& .
9393.sp
9494The \fB \-\- find \- lost \- archives \fP option will also scan the whole repository, but
9595tells Borg to search for lost archive metadata. If Borg encounters any archive
96- metadata that doesn \( aq t match with an archive directory entry (including
96+ metadata that does not match an archive directory entry (including
9797soft\- deleted archives), it means that an entry was lost.
9898Unless \fB borg compact \fP is called, these archives can be fully restored with
9999\fB \-\- repair \fP \& . Please note that \fB \-\- find \- lost \- archives \fP must read a lot of
100- data from the repository and is thus very time consuming. You can not use
100+ data from the repository and is thus very time\- consuming. You cannot use
101101\fB \-\- find \- lost \- archives \fP with \fB \-\- repository \- only \fP \& .
102102.SS About repair mode
103103.sp
104- The check command is a readonly task by default. If any corruption is found,
104+ The check command is a read \- only task by default. If any corruption is found,
105105Borg will report the issue and proceed with checking. To actually repair the
106106issues found, pass \fB \-\- repair \fP \& .
107107.sp
@@ -124,7 +124,7 @@ It is highly recommended to create a backup of your repository before running
124124in repair mode (i.e. running it with \fB \-\- repair \fP ).
125125.sp
126126Repair mode will attempt to fix any corruptions found. Fixing corruptions does
127- not mean recovering lost data: Borg can not magically restore data lost due to
127+ not mean recovering lost data: Borg cannot magically restore data lost due to
128128e.g. a hardware failure. Repairing a repository means sacrificing some data
129129for the sake of the repository as a whole and the remaining data. Hence it is,
130130by definition, a potentially lossy task.
@@ -153,7 +153,7 @@ See \fIborg\-common(1)\fP for common options of Borg commands.
153153only perform repository checks
154154.TP
155155.B \-\- archives\- only
156- only perform archives checks
156+ only perform archive checks
157157.TP
158158.B \-\- verify\- data
159159perform cryptographic archive data integrity verification (conflicts with \fB \-\- repository \- only \fP )
@@ -165,34 +165,34 @@ attempt to repair any inconsistencies found
165165attempt to find lost archives
166166.TP
167167.BI \-\- max\- duration \ SECONDS
168- do only a partial repo check for max. SECONDS seconds (Default : unlimited)
168+ perform only a partial repository check for at most SECONDS seconds (default : unlimited)
169169.UNINDENT
170170.SS Archive filters
171171.INDENT 0.0
172172.TP
173173.BI \- a \ PATTERN\fR ,\fB \ \-\- match\- archives \ PATTERN
174- only consider archives matching all patterns. see \(dq borg help match\- archives\(dq .
174+ only consider archives matching all patterns. See \(dq borg help match\- archives\(dq .
175175.TP
176176.BI \-\- sort\- by \ KEYS
177177Comma\- separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp
178178.TP
179179.BI \-\- first \ N
180- consider first N archives after other filters were applied
180+ consider the first N archives after other filters are applied
181181.TP
182182.BI \-\- last \ N
183- consider last N archives after other filters were applied
183+ consider the last N archives after other filters are applied
184184.TP
185185.BI \-\- oldest \ TIMESPAN
186- consider archives between the oldest archive\(aq s timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
186+ consider archives between the oldest archive\(aq s timestamp and (oldest + TIMESPAN), e.g., 7d or 12m.
187187.TP
188188.BI \-\- newest \ TIMESPAN
189- consider archives between the newest archive\(aq s timestamp and (newest \- TIMESPAN), e.g. 7d or 12m.
189+ consider archives between the newest archive\(aq s timestamp and (newest \- TIMESPAN), e.g., 7d or 12m.
190190.TP
191191.BI \-\- older \ TIMESPAN
192- consider archives older than (now \- TIMESPAN), e.g. 7d or 12m.
192+ consider archives older than (now \- TIMESPAN), e.g., 7d or 12m.
193193.TP
194194.BI \-\- newer \ TIMESPAN
195- consider archives newer than (now \- TIMESPAN), e.g. 7d or 12m.
195+ consider archives newer than (now \- TIMESPAN), e.g., 7d or 12m.
196196.UNINDENT
197197.SH SEE ALSO
198198.sp
0 commit comments