瀏覽代碼

added doc for "pull" type backup over sshfs

Fixes #900
Andrew Engelbrecht 8 年之前
父節點
當前提交
f8bb73732c
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docs/usage.rst

+ 8 - 0
docs/usage.rst

@@ -271,6 +271,14 @@ Examples
     # use zlib compression (good, but slow) - default is no compression
     $ borg create -C zlib,6 /path/to/repo::root-{now:%Y-%m-%d} / --one-file-system
 
+    # Backup a remote host locally ("pull" style) using sshfs
+    $ mkdir sshfs-mount
+    $ sshfs root@example.com:/ sshfs-mount
+    $ cd sshfs-mount
+    $ borg create /path/to/repo::example.com-root-{now:%Y-%m-%d} .
+    $ cd ..
+    $ fusermount -u sshfs-mount
+
     # Make a big effort in fine granular deduplication (big chunk management
     # overhead, needs a lot of RAM and disk space, see formula in internals
     # docs - same parameters as borg < 1.0 or attic):