mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-09 08:51:54 -04:00
Add FAQ how to retain original paths, fixes #4532
Backport from master.
This commit is contained in:
parent
1d583d226f
commit
97cff07839
1 changed files with 17 additions and 0 deletions
17
docs/faq.rst
17
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
|
||||
|
||||
|
||||
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?
|
||||
--------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue