]> git.proxmox.com Git - proxmox-backup.git/commitdiff
datastore: include namespace in full_path
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Apr 2022 08:58:46 +0000 (10:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 May 2022 07:33:50 +0000 (09:33 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pbs-datastore/src/backup_info.rs

index a360483dee41b15158c8f309ed3c3cd0b23ded34..d47b3e9ce16fd2f2142ca3a607d63d0cb2d1ffbd 100644 (file)
@@ -335,6 +335,10 @@ impl BackupDir {
     /// Returns the absolute path for backup_dir, using the cached formatted time string.
     pub fn full_path(&self) -> PathBuf {
         let mut base_path = self.store.base_path();
+        for ns in self.dir.group.ns.components() {
+            base_path.push("ns");
+            base_path.push(ns);
+        }
         base_path.push(self.dir.group.ty.as_str());
         base_path.push(&self.dir.group.id);
         base_path.push(&self.backup_time_string);