PBS Setup Using Existing Datastore
Recreate a Proxmox Backup Server and connect it up to previous backups so restores can happen.
How To
-
Create PBS in an LXC using community script. Create privileged or you will end up with NFS permission problems
https://community-scripts.github.io/ProxmoxVE/scripts?id=proxmox-backup-server
-
Run Post install script:
https://community-scripts.github.io/ProxmoxVE/scripts?id=post-pbs-install
This runs on the PBS
-
Make sure PBS LXC has access to the NFS mount or filesystem you want to use
-
Login and verify LXC sees the mount.
-
Fix permissions:
- 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