[pbs-devel] [PATCH proxmox-backup 2/3] pxar: include .pxarexclude files in the archive

Fabian Ebner f.ebner at proxmox.com
Thu Nov 12 10:03:51 CET 2020


The documentation states:
.pxarexclude files are treated as regular files and will be included in the
backup archive.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

Or should I rather change the documentation?

 src/pxar/create.rs | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/pxar/create.rs b/src/pxar/create.rs
index 7c8e3edb..1615a504 100644
--- a/src/pxar/create.rs
+++ b/src/pxar/create.rs
@@ -425,10 +425,6 @@ impl<'a, 'b> Archiver<'a, 'b> {
                 continue;
             }
 
-            if file_name_bytes == b".pxarexclude" {
-                continue;
-            }
-
             let os_file_name = OsStr::from_bytes(file_name_bytes);
             assert_single_path_component(os_file_name)?;
             let full_path = self.path.join(os_file_name);
-- 
2.20.1






More information about the pbs-devel mailing list