|
@@ -1,8 +1,5 @@
|
|
.\" Man page generated from reStructuredText.
|
|
.\" Man page generated from reStructuredText.
|
|
.
|
|
.
|
|
-.TH BORG-CREATE 1 "2021-07-12" "" "borg backup tool"
|
|
|
|
-.SH NAME
|
|
|
|
-borg-create \- Create new archive
|
|
|
|
.
|
|
.
|
|
.nr rst2man-indent-level 0
|
|
.nr rst2man-indent-level 0
|
|
.
|
|
.
|
|
@@ -30,6 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
..
|
|
..
|
|
|
|
+.TH "BORG-CREATE" 1 "2022-06-04" "" "borg backup tool"
|
|
|
|
+.SH NAME
|
|
|
|
+borg-create \- Create new archive
|
|
.SH SYNOPSIS
|
|
.SH SYNOPSIS
|
|
.sp
|
|
.sp
|
|
borg [common options] create [options] ARCHIVE [PATH...]
|
|
borg [common options] create [options] ARCHIVE [PATH...]
|
|
@@ -116,9 +116,9 @@ how much your repository will grow. Please note that the "All archives" stats re
|
|
the state after creation. Also, the \fB\-\-stats\fP and \fB\-\-dry\-run\fP options are mutually
|
|
the state after creation. Also, the \fB\-\-stats\fP and \fB\-\-dry\-run\fP options are mutually
|
|
exclusive because the data is not actually compressed and deduplicated during a dry run.
|
|
exclusive because the data is not actually compressed and deduplicated during a dry run.
|
|
.sp
|
|
.sp
|
|
-See the output of the "borg help patterns" command for more help on exclude patterns.
|
|
|
|
|
|
+For more help on include/exclude patterns, see the \fIborg_patterns\fP command output.
|
|
.sp
|
|
.sp
|
|
-See the output of the "borg help placeholders" command for more help on placeholders.
|
|
|
|
|
|
+For more help on placeholders, see the \fIborg_placeholders\fP command output.
|
|
.SH OPTIONS
|
|
.SH OPTIONS
|
|
.sp
|
|
.sp
|
|
See \fIborg\-common(1)\fP for common options of Borg commands.
|
|
See \fIborg\-common(1)\fP for common options of Borg commands.
|
|
@@ -134,25 +134,25 @@ paths to archive
|
|
.SS optional arguments
|
|
.SS optional arguments
|
|
.INDENT 0.0
|
|
.INDENT 0.0
|
|
.TP
|
|
.TP
|
|
-.B \-n\fP,\fB \-\-dry\-run
|
|
|
|
|
|
+.B \-n\fP,\fB \-\-dry\-run
|
|
do not create a backup archive
|
|
do not create a backup archive
|
|
.TP
|
|
.TP
|
|
-.B \-s\fP,\fB \-\-stats
|
|
|
|
|
|
+.B \-s\fP,\fB \-\-stats
|
|
print statistics for the created archive
|
|
print statistics for the created archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-list
|
|
|
|
|
|
+.B \-\-list
|
|
output verbose list of items (files, dirs, ...)
|
|
output verbose list of items (files, dirs, ...)
|
|
.TP
|
|
.TP
|
|
.BI \-\-filter \ STATUSCHARS
|
|
.BI \-\-filter \ STATUSCHARS
|
|
only display items with the given status characters (see description)
|
|
only display items with the given status characters (see description)
|
|
.TP
|
|
.TP
|
|
-.B \-\-json
|
|
|
|
|
|
+.B \-\-json
|
|
output stats as JSON. Implies \fB\-\-stats\fP\&.
|
|
output stats as JSON. Implies \fB\-\-stats\fP\&.
|
|
.TP
|
|
.TP
|
|
-.B \-\-no\-cache\-sync
|
|
|
|
|
|
+.B \-\-no\-cache\-sync
|
|
experimental: do not synchronize the cache. Implies not using the files cache.
|
|
experimental: do not synchronize the cache. Implies not using the files cache.
|
|
.TP
|
|
.TP
|
|
-.B \-\-no\-files\-cache
|
|
|
|
|
|
+.B \-\-no\-files\-cache
|
|
do not load/update the file metadata cache used to detect unchanged files
|
|
do not load/update the file metadata cache used to detect unchanged files
|
|
.TP
|
|
.TP
|
|
.BI \-\-stdin\-name \ NAME
|
|
.BI \-\-stdin\-name \ NAME
|
|
@@ -162,7 +162,7 @@ use NAME in archive for stdin data (default: "stdin")
|
|
set user USER in archive for stdin data (default: \(aqroot\(aq)
|
|
set user USER in archive for stdin data (default: \(aqroot\(aq)
|
|
.TP
|
|
.TP
|
|
.BI \-\-stdin\-group \ GROUP
|
|
.BI \-\-stdin\-group \ GROUP
|
|
-set group GROUP in archive for stdin data (default: \(aqroot\(aq)
|
|
|
|
|
|
+set group GROUP in archive for stdin data (default: \(aqwheel\(aq)
|
|
.TP
|
|
.TP
|
|
.BI \-\-stdin\-mode \ M
|
|
.BI \-\-stdin\-mode \ M
|
|
set mode to M in archive for stdin data (default: 0660)
|
|
set mode to M in archive for stdin data (default: 0660)
|
|
@@ -177,57 +177,57 @@ exclude paths matching PATTERN
|
|
read exclude patterns from EXCLUDEFILE, one per line
|
|
read exclude patterns from EXCLUDEFILE, one per line
|
|
.TP
|
|
.TP
|
|
.BI \-\-pattern \ PATTERN
|
|
.BI \-\-pattern \ PATTERN
|
|
-experimental: include/exclude paths matching PATTERN
|
|
|
|
|
|
+include/exclude paths matching PATTERN
|
|
.TP
|
|
.TP
|
|
.BI \-\-patterns\-from \ PATTERNFILE
|
|
.BI \-\-patterns\-from \ PATTERNFILE
|
|
-experimental: read include/exclude patterns from PATTERNFILE, one per line
|
|
|
|
|
|
+read include/exclude patterns from PATTERNFILE, one per line
|
|
.TP
|
|
.TP
|
|
-.B \-\-exclude\-caches
|
|
|
|
|
|
+.B \-\-exclude\-caches
|
|
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.bford.info/cachedir/spec.html\fP)
|
|
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.bford.info/cachedir/spec.html\fP)
|
|
.TP
|
|
.TP
|
|
.BI \-\-exclude\-if\-present \ NAME
|
|
.BI \-\-exclude\-if\-present \ NAME
|
|
exclude directories that are tagged by containing a filesystem object with the given NAME
|
|
exclude directories that are tagged by containing a filesystem object with the given NAME
|
|
.TP
|
|
.TP
|
|
-.B \-\-keep\-exclude\-tags\fP,\fB \-\-keep\-tag\-files
|
|
|
|
|
|
+.B \-\-keep\-exclude\-tags\fP,\fB \-\-keep\-tag\-files
|
|
if tag objects are specified with \fB\-\-exclude\-if\-present\fP, don\(aqt omit the tag objects themselves from the backup archive
|
|
if tag objects are specified with \fB\-\-exclude\-if\-present\fP, don\(aqt omit the tag objects themselves from the backup archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-exclude\-nodump
|
|
|
|
|
|
+.B \-\-exclude\-nodump
|
|
exclude files flagged NODUMP
|
|
exclude files flagged NODUMP
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.SS Filesystem options
|
|
.SS Filesystem options
|
|
.INDENT 0.0
|
|
.INDENT 0.0
|
|
.TP
|
|
.TP
|
|
-.B \-x\fP,\fB \-\-one\-file\-system
|
|
|
|
|
|
+.B \-x\fP,\fB \-\-one\-file\-system
|
|
stay in the same file system and do not store mount points of other file systems. This might behave different from your expectations, see the docs.
|
|
stay in the same file system and do not store mount points of other file systems. This might behave different from your expectations, see the docs.
|
|
.TP
|
|
.TP
|
|
-.B \-\-numeric\-owner
|
|
|
|
|
|
+.B \-\-numeric\-owner
|
|
only store numeric user and group identifiers
|
|
only store numeric user and group identifiers
|
|
.TP
|
|
.TP
|
|
-.B \-\-noatime
|
|
|
|
|
|
+.B \-\-noatime
|
|
do not store atime into archive
|
|
do not store atime into archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-noctime
|
|
|
|
|
|
+.B \-\-noctime
|
|
do not store ctime into archive
|
|
do not store ctime into archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-nobirthtime
|
|
|
|
|
|
+.B \-\-nobirthtime
|
|
do not store birthtime (creation date) into archive
|
|
do not store birthtime (creation date) into archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-nobsdflags
|
|
|
|
|
|
+.B \-\-nobsdflags
|
|
do not read and store bsdflags (e.g. NODUMP, IMMUTABLE) into archive
|
|
do not read and store bsdflags (e.g. NODUMP, IMMUTABLE) into archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-noacls
|
|
|
|
|
|
+.B \-\-noacls
|
|
do not read and store ACLs into archive
|
|
do not read and store ACLs into archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-noxattrs
|
|
|
|
|
|
+.B \-\-noxattrs
|
|
do not read and store xattrs into archive
|
|
do not read and store xattrs into archive
|
|
.TP
|
|
.TP
|
|
-.B \-\-ignore\-inode
|
|
|
|
|
|
+.B \-\-ignore\-inode
|
|
ignore inode data in the file metadata cache used to detect unchanged files.
|
|
ignore inode data in the file metadata cache used to detect unchanged files.
|
|
.TP
|
|
.TP
|
|
.BI \-\-files\-cache \ MODE
|
|
.BI \-\-files\-cache \ MODE
|
|
operate files cache in MODE. default: ctime,size,inode
|
|
operate files cache in MODE. default: ctime,size,inode
|
|
.TP
|
|
.TP
|
|
-.B \-\-read\-special
|
|
|
|
|
|
+.B \-\-read\-special
|
|
open and read block and char device files as well as FIFOs as if they were regular files. Also follows symlinks pointing to these kinds of files.
|
|
open and read block and char device files as well as FIFOs as if they were regular files. Also follows symlinks pointing to these kinds of files.
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.SS Archive options
|
|
.SS Archive options
|
|
@@ -325,8 +325,7 @@ $ borg create /path/to/repo::daily\-projectA\-{now:%Y\-%m\-%d} projectA
|
|
.sp
|
|
.sp
|
|
The \fB\-\-exclude\fP patterns are not like tar. In tar \fB\-\-exclude\fP .bundler/gems will
|
|
The \fB\-\-exclude\fP patterns are not like tar. In tar \fB\-\-exclude\fP .bundler/gems will
|
|
exclude foo/.bundler/gems. In borg it will not, you need to use \fB\-\-exclude\fP
|
|
exclude foo/.bundler/gems. In borg it will not, you need to use \fB\-\-exclude\fP
|
|
-\(aq*/.bundler/gems\(aq to get the same effect. See \fBborg help patterns\fP for
|
|
|
|
-more information.
|
|
|
|
|
|
+\(aq*/.bundler/gems\(aq to get the same effect.
|
|
.sp
|
|
.sp
|
|
In addition to using \fB\-\-exclude\fP patterns, it is possible to use
|
|
In addition to using \fB\-\-exclude\fP patterns, it is possible to use
|
|
\fB\-\-exclude\-if\-present\fP to specify the name of a filesystem object (e.g. a file
|
|
\fB\-\-exclude\-if\-present\fP to specify the name of a filesystem object (e.g. a file
|