extract.rst 770 B

1234567891011121314151617181920212223
  1. .. include:: extract.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # Extract entire archive
  6. $ borg extract /path/to/repo::my-files
  7. # Extract entire archive and list files while processing
  8. $ borg extract --list /path/to/repo::my-files
  9. # Verify whether an archive could be successfully extracted, but do not write files to disk
  10. $ borg extract --dry-run /path/to/repo::my-files
  11. # Extract the "src" directory
  12. $ borg extract /path/to/repo::my-files home/USERNAME/src
  13. # Extract the "src" directory but exclude object files
  14. $ borg extract /path/to/repo::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 /path/to/repo::my-sdx | dd of=/dev/sdx bs=10M