1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 15:57:15 +00:00

doc: add wildcard extract example

This commit is contained in:
Atemu 2024-12-20 09:56:20 +01:00
parent 92f1ae6de8
commit 3301cb7bd3

View file

@ -19,6 +19,9 @@ Examples
# Extract the "src" directory but exclude object files # Extract the "src" directory but exclude object files
$ borg extract my-files home/USERNAME/src --exclude '*.o' $ borg extract my-files home/USERNAME/src --exclude '*.o'
# Extract only the object files
$ borg extract my-files 'sh:home/USERNAME/src/*.o'
# Restore a raw device (must not be active/in use/mounted at that time) # 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 $ borg extract --stdout my-sdx | dd of=/dev/sdx bs=10M