| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 | .\" Man page generated from reStructuredText....nr rst2man-indent-level 0..de1 rstReportMargin\\$1 \\n[an-margin]level \\n[rst2man-indent-level]level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]-\\n[rst2man-indent0]\\n[rst2man-indent1]\\n[rst2man-indent2]...de1 INDENT.\" .rstReportMargin pre:. RS \\$1. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]. nr rst2man-indent-level +1.\" .rstReportMargin post:...de UNINDENT. RE.\" indent \\n[an-margin].\" old: \\n[rst2man-indent\\n[rst2man-indent-level]].nr rst2man-indent-level -1.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]].in \\n[rst2man-indent\\n[rst2man-indent-level]]u...TH "BORG-EXTRACT" 1 "2023-06-11" "" "borg backup tool".SH NAMEborg-extract \- Extract archive contents.SH SYNOPSIS.spborg [common options] extract [options] NAME [PATH...].SH DESCRIPTION.spThis command extracts the contents of an archive. By default the entirearchive is extracted but a subset of files and directories can be selectedby passing a list of \fBPATHs\fP as arguments. The file selection can furtherbe restricted by using the \fB\-\-exclude\fP option..spFor more help on include/exclude patterns, see the \fIborg_patterns\fP command output..spBy using \fB\-\-dry\-run\fP, you can do all extraction steps except actually writing theoutput data: reading metadata and data chunks from the repo, checking the hash/hmac,decrypting, decompressing..sp\fB\-\-progress\fP can be slower than no progress display, since it makes one additionalpass over the archive metadata..sp\fBNOTE:\fP.INDENT 0.0.INDENT 3.5Currently, extract always writes into the current working directory (\(dq.\(dq),so make sure you \fBcd\fP to the right place before calling \fBborg extract\fP\&..spWhen parent directories are not extracted (because of using file/directory selectionor any other reason), borg can not restore parent directories\(aq metadata, e.g. owner,group, permission, etc..UNINDENT.UNINDENT.SH OPTIONS.spSee \fIborg\-common(1)\fP for common options of Borg commands..SS arguments.INDENT 0.0.TP.B NAMEspecify the archive name.TP.B PATHpaths to extract; patterns are supported.UNINDENT.SS options.INDENT 0.0.TP.B  \-\-listoutput verbose list of items (files, dirs, ...).TP.B  \-n\fP,\fB  \-\-dry\-rundo not actually change any files.TP.B  \-\-numeric\-idsonly obey numeric user and group identifiers.TP.B  \-\-noflagsdo not extract/set flags (e.g. NODUMP, IMMUTABLE).TP.B  \-\-noaclsdo not extract/set ACLs.TP.B  \-\-noxattrsdo not extract/set xattrs.TP.B  \-\-stdoutwrite all extracted data to stdout.TP.B  \-\-sparsecreate holes in output sparse file from all\-zero chunks.TP.B  \-\-continuecontinue a previously interrupted extraction of same archive.UNINDENT.SS Include/Exclude options.INDENT 0.0.TP.BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERNexclude paths matching PATTERN.TP.BI \-\-exclude\-from \ EXCLUDEFILEread exclude patterns from EXCLUDEFILE, one per line.TP.BI \-\-pattern \ PATTERNinclude/exclude paths matching PATTERN.TP.BI \-\-patterns\-from \ PATTERNFILEread include/exclude patterns from PATTERNFILE, one per line.TP.BI \-\-strip\-components \ NUMBERRemove the specified number of leading path elements. Paths with fewer elements will be silently skipped..UNINDENT.SH EXAMPLES.INDENT 0.0.INDENT 3.5.sp.nf.ft C# Extract entire archive$ borg extract my\-files# Extract entire archive and list files while processing$ borg extract \-\-list my\-files# Verify whether an archive could be successfully extracted, but do not write files to disk$ borg extract \-\-dry\-run my\-files# Extract the \(dqsrc\(dq directory$ borg extract my\-files home/USERNAME/src# Extract the \(dqsrc\(dq directory but exclude object files$ borg extract my\-files home/USERNAME/src \-\-exclude \(aq*.o\(aq# Restore a raw device (must not be active/in use/mounted at that time)$ borg extract \-\-stdout my\-sdx | dd of=/dev/sdx bs=10M.ft P.fi.UNINDENT.UNINDENT.SH SEE ALSO.sp\fIborg\-common(1)\fP, \fIborg\-mount(1)\fP.SH AUTHORThe Borg Collective.\" Generated by docutils manpage writer..
 |