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
|