File: extract.rst

package info (click to toggle)
borgbackup2 2.0.0b20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,848 kB
  • sloc: python: 33,830; pascal: 3,599; sh: 215; makefile: 160; tcl: 94; ansic: 21
file content (27 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.. include:: extract.rst.inc

Examples
~~~~~~~~
::

    # Extract entire archive
    $ borg extract my-files

    # Extract entire archive and list files while processing
    $ borg extract --list my-files

    # Verify whether an archive could be successfully extracted, but do not write files to disk
    $ borg extract --dry-run my-files

    # Extract the "src" directory
    $ borg extract my-files home/USERNAME/src

    # Extract the "src" directory but exclude object files
    $ borg extract my-files home/USERNAME/src --exclude '*.o'

    # Extract only the C files
    $ borg extract my-files 'sh:home/USERNAME/src/*.c'

    # Restore a raw device (must not be active/in use/mounted at that time)
    $ borg extract --stdout my-sdx | dd of=/dev/sdx bs=10M