فهرست منبع

docs: info: update and add examples

The form of the output has changed and
new output has been added.
Marian Beermann 8 سال پیش
والد
کامیت
4009a764ed
1فایلهای تغییر یافته به همراه45 افزوده شده و 10 حذف شده
  1. 45 10
      docs/usage/info.rst

+ 45 - 10
docs/usage/info.rst

@@ -4,20 +4,55 @@ Examples
 ~~~~~~~~
 ::
 
-    $ borg info /path/to/repo::root-2016-02-15
-    Name: root-2016-02-15
-    Fingerprint: 57c827621f21b000a8d363c1e163cc55983822b3afff3a96df595077a660be50
+    $ borg info /path/to/repo::2017-06-29T11:00-srv
+    Archive name: 2017-06-29T11:00-srv
+    Archive fingerprint: b2f1beac2bd553b34e06358afa45a3c1689320d39163890c5bbbd49125f00fe5
+    Comment:
     Hostname: myhostname
     Username: root
-    Time (start): Mon, 2016-02-15 19:36:29
-    Time (end):   Mon, 2016-02-15 19:39:26
-    Command line: /usr/local/bin/borg create --list -C zlib,6 /path/to/repo::root-2016-02-15 / --one-file-system
-    Number of files: 38100
+    Time (start): Thu, 2017-06-29 11:03:07
+    Time (end): Thu, 2017-06-29 11:03:13
+    Duration: 5.66 seconds
+    Number of files: 17037
+    Command line: /usr/sbin/borg create /path/to/repo::2017-06-29T11:00-srv /srv
+    Utilization of max. archive size: 0%
+    ------------------------------------------------------------------------------
+                           Original size      Compressed size    Deduplicated size
+    This archive:               12.53 GB             12.49 GB              1.62 kB
+    All archives:              121.82 TB            112.41 TB            215.42 GB
+
+                           Unique chunks         Total chunks
+    Chunk index:                 1015213            626934122
 
+    $ borg info /path/to/repo --last 1
+    Archive name: 2017-06-29T11:00-srv
+    Archive fingerprint: b2f1beac2bd553b34e06358afa45a3c1689320d39163890c5bbbd49125f00fe5
+    Comment:
+    Hostname: myhostname
+    Username: root
+    Time (start): Thu, 2017-06-29 11:03:07
+    Time (end): Thu, 2017-06-29 11:03:13
+    Duration: 5.66 seconds
+    Number of files: 17037
+    Command line: /usr/sbin/borg create /path/to/repo::2017-06-29T11:00-srv /srv
+    Utilization of max. archive size: 0%
+    ------------------------------------------------------------------------------
                            Original size      Compressed size    Deduplicated size
-    This archive:                1.33 GB            613.25 MB            571.64 MB
-    All archives:                1.63 GB            853.66 MB            584.12 MB
+    This archive:               12.53 GB             12.49 GB              1.62 kB
+    All archives:              121.82 TB            112.41 TB            215.42 GB
 
                            Unique chunks         Total chunks
-    Chunk index:                   36858                48844
+    Chunk index:                 1015213            626934122
+
+    $ borg info /path/to/repo
+    Repository ID: d857ce5788c51272c61535062e89eac4e8ef5a884ffbe976e0af9d8765dedfa5
+    Location: /path/to/repo
+    Encrypted: Yes (repokey)
+    Cache: /root/.cache/borg/d857ce5788c51272c61535062e89eac4e8ef5a884ffbe976e0af9d8765dedfa5
+    Security dir: /root/.config/borg/security/d857ce5788c51272c61535062e89eac4e8ef5a884ffbe976e0af9d8765dedfa5
+    ------------------------------------------------------------------------------
+                           Original size      Compressed size    Deduplicated size
+    All archives:              121.82 TB            112.41 TB            215.42 GB
 
+                           Unique chunks         Total chunks
+    Chunk index:                 1015213            626934122