mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 09:19:31 +00:00
Merge pull request #676 from ThomasWaldmann/block-dev-restore-docs
docs: add example how to restore a raw device, fixes #671
This commit is contained in:
commit
a44c1f5092
1 changed files with 4 additions and 1 deletions
|
@ -260,7 +260,7 @@ Examples
|
||||||
$ borg create --chunker-params 10,23,16,4095 /mnt/backup::small /smallstuff
|
$ borg create --chunker-params 10,23,16,4095 /mnt/backup::small /smallstuff
|
||||||
|
|
||||||
# Backup a raw device (must not be active/in use/mounted at that time)
|
# Backup a raw device (must not be active/in use/mounted at that time)
|
||||||
$ dd if=/dev/sda bs=10M | borg create /mnt/backup::my-sda -
|
$ dd if=/dev/sdx bs=10M | borg create /mnt/backup::my-sdx -
|
||||||
|
|
||||||
# No compression (default)
|
# No compression (default)
|
||||||
$ borg create /mnt/backup::repo ~
|
$ borg create /mnt/backup::repo ~
|
||||||
|
@ -292,6 +292,9 @@ Examples
|
||||||
# Extract the "src" directory but exclude object files
|
# Extract the "src" directory but exclude object files
|
||||||
$ borg extract /mnt/backup::my-files home/USERNAME/src --exclude '*.o'
|
$ borg extract /mnt/backup::my-files home/USERNAME/src --exclude '*.o'
|
||||||
|
|
||||||
|
# Restore a raw device (must not be active/in use/mounted at that time)
|
||||||
|
$ borg extract --stdout /mnt/backup::my-sdx | dd of=/dev/sdx bs=10M
|
||||||
|
|
||||||
Note: currently, extract always writes into the current working directory ("."),
|
Note: currently, extract always writes into the current working directory ("."),
|
||||||
so make sure you ``cd`` to the right place before calling ``borg extract``.
|
so make sure you ``cd`` to the right place before calling ``borg extract``.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue