Sfoglia il codice sorgente

Merge pull request #3054 from ThomasWaldmann/update-create-docs-1.1

Update create docs (1.1-maint)
TW 7 anni fa
parent
commit
fa66015cb3
1 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. 9 6
      docs/usage/create.rst

+ 9 - 6
docs/usage/create.rst

@@ -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)
-    $ borg create /path/to/repo::arch ~
+    # No compression (none)
+    $ borg create --compression none /path/to/repo::arch ~
 
 
-    # Super fast, low compression
-    $ borg create --compression lz4 /path/to/repo::arch ~
+    # Super fast, low compression (lz4, default)
+    $ borg create /path/to/repo::arch ~
 
 
-    # Less fast, higher compression (N = 0..9)
+    # Less fast, higher compression (zlib, 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