|
@@ -1,6 +1,6 @@
|
|
.\" Man page generated from reStructuredText.
|
|
.\" Man page generated from reStructuredText.
|
|
.
|
|
.
|
|
-.TH BORG-CREATE 1 "2020-10-06" "" "borg backup tool"
|
|
|
|
|
|
+.TH BORG-CREATE 1 "2020-12-24" "" "borg backup tool"
|
|
.SH NAME
|
|
.SH NAME
|
|
borg-create \- Create new archive
|
|
borg-create \- Create new archive
|
|
.
|
|
.
|
|
@@ -117,6 +117,7 @@ the state after creation. Also, the \fB\-\-stats\fP and \fB\-\-dry\-run\fP optio
|
|
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.
|
|
See the output of the "borg help patterns" command for more help on exclude patterns.
|
|
|
|
+.sp
|
|
See the output of the "borg help placeholders" command for more help on placeholders.
|
|
See the output of the "borg help placeholders" command for more help on placeholders.
|
|
.SH OPTIONS
|
|
.SH OPTIONS
|
|
.sp
|
|
.sp
|
|
@@ -156,6 +157,15 @@ do not load/update the file metadata cache used to detect unchanged files
|
|
.TP
|
|
.TP
|
|
.BI \-\-stdin\-name \ NAME
|
|
.BI \-\-stdin\-name \ NAME
|
|
use NAME in archive for stdin data (default: "stdin")
|
|
use NAME in archive for stdin data (default: "stdin")
|
|
|
|
+.TP
|
|
|
|
+.BI \-\-stdin\-user \ USER
|
|
|
|
+set user USER in archive for stdin data (default: \(aqroot\(aq)
|
|
|
|
+.TP
|
|
|
|
+.BI \-\-stdin\-group \ GROUP
|
|
|
|
+set group GROUP in archive for stdin data (default: \(aqroot\(aq)
|
|
|
|
+.TP
|
|
|
|
+.BI \-\-stdin\-mode \ M
|
|
|
|
+set mode to M in archive for stdin data (default: 0660)
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.SS Exclusion options
|
|
.SS Exclusion options
|
|
.INDENT 0.0
|
|
.INDENT 0.0
|
|
@@ -188,7 +198,7 @@ exclude files flagged NODUMP
|
|
.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
|
|
|
|
|
|
+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
|
|
@@ -320,6 +330,17 @@ all of its contents will be omitted from the backup. If, however, you wish to
|
|
only include the objects specified by \fB\-\-exclude\-if\-present\fP in your backup,
|
|
only include the objects specified by \fB\-\-exclude\-if\-present\fP in your backup,
|
|
and not include any other contents of the containing folder, this can be enabled
|
|
and not include any other contents of the containing folder, this can be enabled
|
|
through using the \fB\-\-keep\-exclude\-tags\fP option.
|
|
through using the \fB\-\-keep\-exclude\-tags\fP option.
|
|
|
|
+.sp
|
|
|
|
+The \fB\-x\fP or \fB\-\-one\-file\-system\fP option excludes directories, that are mountpoints (and everything in them).
|
|
|
|
+It detects mountpoints by comparing the device number from the output of \fBstat()\fP of the directory and its
|
|
|
|
+parent directory. Specifically, it excludes directories for which \fBstat()\fP reports a device number different
|
|
|
|
+from the device number of their parent. Be aware that in Linux (and possibly elsewhere) there are directories
|
|
|
|
+with device number different from their parent, which the kernel does not consider a mountpoint and also the
|
|
|
|
+other way around. Examples are bind mounts (possibly same device number, but always a mountpoint) and ALL
|
|
|
|
+subvolumes of a btrfs (different device number from parent but not necessarily a mountpoint). Therefore when
|
|
|
|
+using \fB\-\-one\-file\-system\fP, one should make doubly sure that the backup works as intended especially when using
|
|
|
|
+btrfs. This is even more important, if the btrfs layout was created by someone else, e.g. a distribution
|
|
|
|
+installer.
|
|
.SS Item flags
|
|
.SS Item flags
|
|
.sp
|
|
.sp
|
|
\fB\-\-list\fP outputs a list of all files, directories and other
|
|
\fB\-\-list\fP outputs a list of all files, directories and other
|