mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-20 00:10:35 -05:00
docs: fix code blocks
This commit is contained in:
parent
256f89e697
commit
b42bbc6f68
2 changed files with 5 additions and 6 deletions
|
|
@ -100,17 +100,17 @@ Backup compression
|
|||
Default is no compression, but we support different methods with high speed
|
||||
or high compression:
|
||||
|
||||
If you have a quick repo storage and you want a little compression:
|
||||
If you have a quick repo storage and you want a little compression: ::
|
||||
|
||||
$ borg create --compression lz4 /mnt/backup::repo ~
|
||||
|
||||
If you have a medium fast repo storage and you want a bit more compression (N=0..9,
|
||||
0 means no compression, 9 means high compression):
|
||||
0 means no compression, 9 means high compression): ::
|
||||
|
||||
$ borg create --compression zlib,N /mnt/backup::repo ~
|
||||
|
||||
If you have a very slow repo storage and you want high compression (N=0..9, 0 means
|
||||
low compression, 9 means high compression):
|
||||
low compression, 9 means high compression): ::
|
||||
|
||||
$ borg create --compression lzma,N /mnt/backup::repo ~
|
||||
|
||||
|
|
|
|||
|
|
@ -418,15 +418,14 @@ original volumes continue changing the data stored there.
|
|||
You also add the output of `lvdisplay` to your backup, so you can see the LV sizes
|
||||
in case you ever need to recreate and restore them.
|
||||
|
||||
After the backup has completed, you remove the snapshots again.
|
||||
After the backup has completed, you remove the snapshots again. ::
|
||||
|
||||
::
|
||||
$ # create snapshots here
|
||||
$ lvdisplay > lvdisplay.txt
|
||||
$ borg create --read-special /mnt/backup::repo lvdisplay.txt /dev/vg0/*-snapshot
|
||||
$ # remove snapshots here
|
||||
|
||||
Now, let's see how to restore some LVs from such a backup.
|
||||
Now, let's see how to restore some LVs from such a backup. ::
|
||||
|
||||
$ borg extract /mnt/backup::repo lvdisplay.txt
|
||||
$ # create empty LVs with correct sizes here (look into lvdisplay.txt).
|
||||
|
|
|
|||
Loading…
Reference in a new issue