mirror of https://github.com/borgbackup/borg.git
Merge pull request #3038 from ThomasWaldmann/update-create-docs
more about compression in borg create docs
This commit is contained in:
commit
538855e2d3
|
@ -41,18 +41,21 @@ Examples
|
||||||
# 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/sdx bs=10M | borg create /path/to/repo::my-sdx -
|
$ dd if=/dev/sdx bs=10M | borg create /path/to/repo::my-sdx -
|
||||||
|
|
||||||
# No compression (default)
|
# No compression (none)
|
||||||
|
$ borg create --compression none /path/to/repo::arch ~
|
||||||
|
|
||||||
|
# Super fast, low compression (lz4, default)
|
||||||
$ borg create /path/to/repo::arch ~
|
$ borg create /path/to/repo::arch ~
|
||||||
|
|
||||||
# Super fast, low compression
|
# Less fast, higher compression (zlib, N = 0..9)
|
||||||
$ borg create --compression lz4 /path/to/repo::arch ~
|
|
||||||
|
|
||||||
# Less fast, higher compression (N = 0..9)
|
|
||||||
$ borg create --compression zlib,N /path/to/repo::arch ~
|
$ borg create --compression zlib,N /path/to/repo::arch ~
|
||||||
|
|
||||||
# Even slower, even higher compression (N = 0..9)
|
# Even slower, even higher compression (lzma, N = 0..9)
|
||||||
$ borg create --compression lzma,N /path/to/repo::arch ~
|
$ borg create --compression lzma,N /path/to/repo::arch ~
|
||||||
|
|
||||||
|
# Only compress compressible data with lzma,N (N = 0..9)
|
||||||
|
$ borg create --compression auto,lzma,N /path/to/repo::arch ~
|
||||||
|
|
||||||
# Use short hostname, user name and current time in archive name
|
# Use short hostname, user name and current time in archive name
|
||||||
$ borg create /path/to/repo::{hostname}-{user}-{now} ~
|
$ borg create /path/to/repo::{hostname}-{user}-{now} ~
|
||||||
# Similar, use the same datetime format as borg 1.1 will have as default
|
# Similar, use the same datetime format as borg 1.1 will have as default
|
||||||
|
|
Loading…
Reference in New Issue