1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-04 10:39:50 +00:00
borg/docs/usage/extract.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
681 B
ReStructuredText
Raw Normal View History

2017-06-07 00:06:36 +02:00
.. include:: extract.rst.inc
Examples
~~~~~~~~
::
# Extract entire archive
2022-06-24 01:19:19 +02:00
$ borg extract my-files
2017-06-07 00:06:36 +02:00
# Extract entire archive and list files while processing
2022-06-24 01:19:19 +02:00
$ borg extract --list my-files
2017-06-07 00:06:36 +02:00
# Verify whether an archive could be successfully extracted, but do not write files to disk
2022-06-24 01:19:19 +02:00
$ borg extract --dry-run my-files
2017-06-07 00:06:36 +02:00
# Extract the "src" directory
2022-06-24 01:19:19 +02:00
$ borg extract my-files home/USERNAME/src
2017-06-07 00:06:36 +02:00
# Extract the "src" directory but exclude object files
2022-06-24 01:19:19 +02:00
$ borg extract my-files home/USERNAME/src --exclude '*.o'
2017-06-07 00:06:36 +02:00
# Restore a raw device (must not be active/in use/mounted at that time)
2022-06-24 01:19:19 +02:00
$ borg extract --stdout my-sdx | dd of=/dev/sdx bs=10M
2022-07-05 00:38:37 +02:00