Prechádzať zdrojové kódy

Doc/4532 faq retain original paths (#4794)

More general FAQ for backup and retain original paths, fixes #4532
Thalian 5 rokov pred
rodič
commit
87abe5d927
1 zmenil súbory, kde vykonal 17 pridanie a 0 odobranie
  1. 17 0
      docs/faq.rst

+ 17 - 0
docs/faq.rst

@@ -742,6 +742,23 @@ Now Borg will be bandwidth limited. Nice thing about pv is that you can change r
 .. _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?
 --------------------------------------------------------------------