Skip to content

PBS Setup Using Existing Datastore

Recreate a Proxmox Backup Server and connect it up to previous backups so restores can happen.

How To

chmod 755 pbs
chmod -R 750 pbs/.chunks
chmod 644 pbs/.lock
  • In the PBS web UI Add it as a datastore, check “advanced” and “reuse existing datastore”

Warning

Using privileged LXC - there has to be a better way

  • Actual PBS permission checks:
    pub fn verify_chunkstore<T: AsRef<Path>>(path: T) -> Result<(), Error> {
         // Check datastore root path perm/owner
         ChunkStore::check_permissions(path.as_ref(), 0o755)?;

       let chunk_dir = Self::chunk_dir(path.as_ref());
       // Check datastore .chunks path perm/owner
        ChunkStore::check_permissions(&chunk_dir, 0o750)?;

       // Check all .chunks subdirectories
        for i in 0..64 * 1024 {
            let mut l1path = chunk_dir.clone();
           l1path.push(format!("{:04x}", i));
            ChunkStore::check_permissions(&l1path, 0o750)?;
        }

       // Check .lock file
       let lockfile_path = Self::lockfile_path(path.as_ref());
       ChunkStore::check_permissions(lockfile_path, 0o644)?;
        Ok(())
     }
  • Integrate new PBS with PVE:

From UI:

Datacenter/Storage/Add/Proxmoxx Backup Server

  • Fingerprint available from PBS web UI Dashboard
  • Datastore is the name of the datastore added in PBS

add.png