[pve-devel] [PATCH docs 2/5] vdzump: extend examples to also cover relative patterns
Fabian Ebner
f.ebner at proxmox.com
Fri Nov 20 15:50:42 CET 2020
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
vzdump.adoc | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/vzdump.adoc b/vzdump.adoc
index 1c39680..a9a7b2f 100644
--- a/vzdump.adoc
+++ b/vzdump.adoc
@@ -288,7 +288,16 @@ You can also manually specify (additional) exclude paths, for example:
# vzdump 777 --exclude-path /tmp/ --exclude-path '/var/foo*'
-(only excludes tmp directories)
+excludes the directory `/tmp/` and any file or directory named `/var/foo`,
+`/var/foobar`, and so on.
+
+Paths that do not start with a `/` are not anchored to the container's root,
+but will match relative to any subdirectory. For example:
+
+ # vzdump 777 --exclude-path bar
+
+excludes any file or directoy named `/bar`, `/var/bar`, `/var/foo/bar`, and
+so on, but not `/bar2`.
Configuration files are also stored inside the backup archive
(in `./etc/vzdump/`) and will be correctly restored.
--
2.20.1
More information about the pve-devel
mailing list