I recently installed PBS and am having problems getting the expected de-duplication when creating .pxar archives. See test output below. PBS only reliably de-duplicates when the archive name and path is exactly the same as the previous one.
I installed the server (no-subscription repo) on top of a bare metal Debian 11. I've tried to run backups from the client installed on various hosts running Ubuntu 20.04, as well as from the same host running the server. These tests, with inline comments, are from the client running on the same machine as the server.
Any ideas why it's not de-duplicating? The "Unable to open dynamic index" error seems to occurs whenever the .pxar name doesn't match the immediately previous backup.
I installed the server (no-subscription repo) on top of a bare metal Debian 11. I've tried to run backups from the client installed on various hosts running Ubuntu 20.04, as well as from the same host running the server. These tests, with inline comments, are from the client running on the same machine as the server.
Any ideas why it's not de-duplicating? The "Unable to open dynamic index" error seems to occurs whenever the .pxar name doesn't match the immediately previous backup.
paul@spare:~$ proxmox-backup-client version
client version: 2.3.2
server version: 2.3.2
# First backup of source path #1.
# Observe: Behaves normally (uncompressed).
paul@spare:~$ proxmox-backup-client backup rsync-test.pxar:/srv/rsync/test
Starting backup: host/spare/2023-01-20T20:52:45Z
Client name: spare
Starting backup protocol: Fri Jan 20 15:52:45 2023
fingerprint: ea:ab:04:e0:76:39:19:b4:2b:58:91:fd:a1:72:95:45:44:cf:39:96:af:d5:ea:3e:3b:2b:dd:1d:6c:b9:66:15
Are you sure you want to continue connecting? (y/n): y
No previous manifest available.
Upload directory '/srv/rsync/test' to 'paul@pam!spare@spare:8007:active' as rsync-test.pxar.didx
rsync-test.pxar: had to backup 115.072 MiB of 115.072 MiB (compressed 21.267 MiB) in 1.10s
rsync-test.pxar: average backup speed: 104.403 MiB/s
Uploaded backup catalog (2.18 KiB)
Duration: 5.39s
End Time: Fri Jan 20 15:52:51 2023
# Second backup of source path #1 with zero file changes since first backup.
# Observe: Re-uses previous chunks as expected, 100% compression
paul@spare:~$ proxmox-backup-client backup rsync-test.pxar:/srv/rsync/test
Starting backup: host/spare/2023-01-20T20:53:03Z
Client name: spare
Starting backup protocol: Fri Jan 20 15:53:03 2023
Downloading previous manifest (Fri Jan 20 15:52:45 2023)
Upload directory '/srv/rsync/test' to 'paul@pam!spare@spare:8007:active' as rsync-test.pxar.didx
rsync-test.pxar: had to backup 0 B of 115.072 MiB (compressed 0 B) in 0.47s
rsync-test.pxar: average backup speed: 0 B/s
rsync-test.pxar: backup was done incrementally, reused 115.072 MiB (100.0%)
Uploaded backup catalog (2.18 KiB)
Duration: 0.72s
End Time: Fri Jan 20 15:53:03 202
# Create a new backup: different .pxar name, different source path (#2).
# Observe: Uncompressed, as expected.
paul@spare:~$ proxmox-backup-client backup rsync-test.pxar:/srv/rsync/test2
Starting backup: host/spare/2023-01-20T20:54:37Z
Client name: spare
Starting backup protocol: Fri Jan 20 15:54:37 2023
Downloading previous manifest (Fri Jan 20 15:53:03 2023)
Upload directory '/srv/rsync/test2' to 'paul@pam!spare@spare:8007:active' as rsync-test.pxar.didx
rsync-test.pxar: had to backup 442.023 MiB of 442.023 MiB (compressed 65.686 MiB) in 3.96s
rsync-test.pxar: average backup speed: 111.756 MiB/s
Uploaded backup catalog (318 B)
Duration: 5.19s
End Time: Fri Jan 20 15:54:43 2023
# Back up original source path (#1) a third time. Observe: no compression.
# Observe: Uncompressed, not reporting any compression.
paul@spare:~$ proxmox-backup-client backup rsync-test.pxar:/srv/rsync/test
Starting backup: host/spare/2023-01-20T20:55:15Z
Client name: spare
Starting backup protocol: Fri Jan 20 15:55:15 2023
Downloading previous manifest (Fri Jan 20 15:54:37 2023)
Upload directory '/srv/rsync/test' to 'paul@pam!spare@spare:8007:active' as rsync-test.pxar.didx
rsync-test.pxar: had to backup 115.072 MiB of 115.072 MiB (compressed 21.267 MiB) in 1.09s
rsync-test.pxar: average backup speed: 106.002 MiB/s
Uploaded backup catalog (2.18 KiB)
Duration: 1.34s
End Time: Fri Jan 20 15:55:16 2023
# Back up original source path (#1) a fourth time, under a new archive (.pxar) name.
# Observe: Uncompress. Also reports error reading .didx from previous manifest, although this is the first time I have used this archive name.
paul@spare:~$ proxmox-backup-client backup rsync-test-NEWNAME.pxar:/srv/rsync/test
Starting backup: host/spare/2023-01-20T20:57:46Z
Client name: spare
Starting backup protocol: Fri Jan 20 15:57:46 2023
Downloading previous manifest (Fri Jan 20 15:55:15 2023)
Upload directory '/srv/rsync/test' to 'paul@pam!spare@spare:8007:active' as rsync-test-NEWNAME.pxar.didx
Error downloading .didx from previous manifest: Unable to open dynamic index "/mnt/pbs1/active/host/spare/2023-01-20T20:55:15Z/rsync-test-NEWNAME.pxar.didx" - No such file or directory (os error 2)
rsync-test-NEWNAME.pxar: had to backup 115.072 MiB of 115.072 MiB (compressed 21.267 MiB) in 1.06s
rsync-test-NEWNAME.pxar: average backup speed: 108.171 MiB/s
Uploaded backup catalog (2.188 KiB)
Duration: 1.37s
End Time: Fri Jan 20 15:57:47 2023
# Back up original source path (#1) a fifth time, under its original .pxarc name.
# Observe: Uncompressed. And seems to expect the previous backup to have the same .pxar name.
paul@spare:~$ proxmox-backup-client backup rsync-test.pxar:/srv/rsync/test
Starting backup: host/spare/2023-01-20T21:26:14Z
Client name: spare
Starting backup protocol: Fri Jan 20 16:26:14 2023
Downloading previous manifest (Fri Jan 20 15:57:46 2023)
Upload directory '/srv/rsync/test' to 'paul@pam!spare@spare:8007:active' as rsync-test.pxar.didx
Error downloading .didx from previous manifest: Unable to open dynamic index "/mnt/pbs1/active/host/spare/2023-01-20T20:57:46Z/rsync-test.pxar.didx" - No such file or directory (os error 2)
rsync-test.pxar: had to backup 115.072 MiB of 115.072 MiB (compressed 21.267 MiB) in 1.09s
rsync-test.pxar: average backup speed: 106.039 MiB/s
Uploaded backup catalog (2.18 KiB)
Duration: 1.42s
End Time: Fri Jan 20 16:26:15 2023