1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-28 19:01:58 +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-06 22:06:36 +00:00
.. include:: extract.rst.inc
Examples
~~~~~~~~
::
# Extract entire archive
2022-06-23 23:19:19 +00:00
$ borg extract my-files
2017-06-06 22:06:36 +00:00
# Extract entire archive and list files while processing
2022-06-23 23:19:19 +00:00
$ borg extract --list my-files
2017-06-06 22:06:36 +00:00
# Verify whether an archive could be successfully extracted, but do not write files to disk
2022-06-23 23:19:19 +00:00
$ borg extract --dry-run my-files
2017-06-06 22:06:36 +00:00
# Extract the "src" directory
2022-06-23 23:19:19 +00:00
$ borg extract my-files home/USERNAME/src
2017-06-06 22:06:36 +00:00
# Extract the "src" directory but exclude object files
2022-06-23 23:19:19 +00:00
$ borg extract my-files home/USERNAME/src --exclude '*.o'
2017-06-06 22:06:36 +00:00
# Restore a raw device (must not be active/in use/mounted at that time)
2022-06-23 23:19:19 +00:00
$ borg extract --stdout my-sdx | dd of=/dev/sdx bs=10M
2022-07-04 22:38:37 +00:00