extract.rst 681 B

123456789101112131415161718192021222324
  1. .. include:: extract.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # Extract entire archive
  6. $ borg extract my-files
  7. # Extract entire archive and list files while processing
  8. $ borg extract --list my-files
  9. # Verify whether an archive could be successfully extracted, but do not write files to disk
  10. $ borg extract --dry-run my-files
  11. # Extract the "src" directory
  12. $ borg extract my-files home/USERNAME/src
  13. # Extract the "src" directory but exclude object files
  14. $ borg extract my-files home/USERNAME/src --exclude '*.o'
  15. # Restore a raw device (must not be active/in use/mounted at that time)
  16. $ borg extract --stdout my-sdx | dd of=/dev/sdx bs=10M