Kaynağa Gözat

Add FAQ how to retain original paths, fixes #4532

Backport from master.
Thalian 5 yıl önce
ebeveyn
işleme
97cff07839
1 değiştirilmiş dosya ile 17 ekleme ve 0 silme
  1. 17 0
      docs/faq.rst

+ 17 - 0
docs/faq.rst

@@ -742,6 +742,23 @@ Now |project_name| will be bandwidth limited. Nice thing about pv is that you ca
 .. _pipeviewer: http://www.ivarch.com/programs/pv.shtml
 .. _pipeviewer: http://www.ivarch.com/programs/pv.shtml
 
 
 
 
+How can I avoid unwanted base directories getting stored into archives?
+-----------------------------------------------------------------------
+
+Possible use cases:
+
+- Another file system is mounted and you want to backup it with original paths.
+- You have created a BTRFS snapshot in a ``/.snapshots`` directory for backup.
+
+To achieve this, run ``borg create`` within the mountpoint/snapshot directory:
+
+::
+
+    # Example: Some file system mounted in /mnt/rootfs.
+    cd /mnt/rootfs
+    borg create /path/to/repo::rootfs_backup .
+
+
 I am having troubles with some network/FUSE/special filesystem, why?
 I am having troubles with some network/FUSE/special filesystem, why?
 --------------------------------------------------------------------
 --------------------------------------------------------------------