Hi everybody,
I have an older Debian Stretch Server which can't simply be upgraded to a newer Debian Version. There I want to use proxmox-backup-client for backing up some files to a running PBS. As proxmox-backup-client can't be installed on Stretch cause of missing dependencies I gave a dockerized client a try and used this quick and dirty Dockerfile for creating such an image:
For testing things out I started and entered a container from this image:
Docker Arguments:
--hostname... -> So that the Container has the same Hostname than the machine and therefore the backup has the correct group name in PBS
-v /home... -> Mounted the Filesystem from which backups should be taken in readonly mode
-v /opt/pbs/.cache... -> Persist files in /root/.cache that proxmox-backup-client creates (not sure, if it is important)
--env-file...-> Contains Env - Vars like PBS_REPOSITORY, TZ a.s.o.
In the container I started a Backup twice:
In the second backup I'm especially confused about this line:
backuptest.pxar: had to backup 623.076 MiB of 623.076 MiB (compressed 479.674 MiB) in 5.98s
Why? This has to be "0 of 623.076 MiB" correctly as no bit has changed after the first backup a few seconds before, hasn't it?
For verifiying I did a second test on another machine where proxmox-backup-client is normally installed:
Here the output of the second backup is as expected: "had to backup 0 B of 625.614 MiB".
And what is more confusing and is another hint IMHO:
In these backups there are lines like "backup was done incrementally, reused..." (even when running the first time, which I also don't understand). These lines are completely missing in the docker-based client.
Any idea what I'm doing wrong in the docker-way?
Thx in advance
I have an older Debian Stretch Server which can't simply be upgraded to a newer Debian Version. There I want to use proxmox-backup-client for backing up some files to a running PBS. As proxmox-backup-client can't be installed on Stretch cause of missing dependencies I gave a dockerized client a try and used this quick and dirty Dockerfile for creating such an image:
Code:
FROM debian:bullseye-slim
RUN apt update && apt install -y wget && wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg; \
echo "deb http://download.proxmox.com/debian/pbs-client bullseye main" >> /etc/apt/sources.list.d/pbs.list; \
apt update && apt install -y proxmox-backup-client
For testing things out I started and entered a container from this image:
Code:
docker run --rm -it --hostname $(hostname) -v /home:/home:ro -v /opt/pbs/.cache:/root/.cache --env-file /opt/pbs/env pbs-client bash
Docker Arguments:
--hostname... -> So that the Container has the same Hostname than the machine and therefore the backup has the correct group name in PBS
-v /home... -> Mounted the Filesystem from which backups should be taken in readonly mode
-v /opt/pbs/.cache... -> Persist files in /root/.cache that proxmox-backup-client creates (not sure, if it is important)
--env-file...-> Contains Env - Vars like PBS_REPOSITORY, TZ a.s.o.
In the container I started a Backup twice:
Code:
root@ContainerHostName:/home# proxmox-backup-client backup backuptest.pxar:/home/backuptest
Starting backup: host/ContainerHostName/2022-04-01T16:03:17Z
Client name: ContainerHostName
Starting backup protocol: Fri Apr 1 18:03:17 2022
No previous manifest available.
Upload directory '/home/backuptest' to 'RepositoryURL' as backuptest.pxar.didx
backuptest.pxar: had to backup 623.076 MiB of 623.076 MiB (compressed 479.674 MiB) in 5.85s
backuptest.pxar: average backup speed: 106.521 MiB/s
Uploaded backup catalog (110.466 KiB)
Duration: 5.90s
End Time: Fri Apr 1 18:03:22 2022
root@ContainerHostName:/home# proxmox-backup-client backup backuptest.pxar:/home/backuptest
Starting backup: host/ContainerHostName/2022-04-01T16:03:33Z
Client name: ContainerHostName
Starting backup protocol: Fri Apr 1 18:03:33 2022
Downloading previous manifest (Fri Apr 1 18:03:17 2022)
Upload directory '/home/backuptest' to 'RepositoryURL' as backuptest.pxar.didx
backuptest.pxar: had to backup 623.076 MiB of 623.076 MiB (compressed 479.674 MiB) in 5.98s
backuptest.pxar: average backup speed: 104.217 MiB/s
Uploaded backup catalog (110.466 KiB)
Duration: 6.02s
End Time: Fri Apr 1 18:03:39 2022
In the second backup I'm especially confused about this line:
backuptest.pxar: had to backup 623.076 MiB of 623.076 MiB (compressed 479.674 MiB) in 5.98s
Why? This has to be "0 of 623.076 MiB" correctly as no bit has changed after the first backup a few seconds before, hasn't it?
For verifiying I did a second test on another machine where proxmox-backup-client is normally installed:
Code:
root@AnotherMachine:/mnt/data# proxmox-backup-client backup test.pxar:/mnt/data/backuptest
Starting backup: host/AnotherMachine/2022-04-01T15:59:54Z
Client name: AnotherMachine
Starting backup protocol: Fri Apr 1 17:59:54 2022
No previous manifest available.
Upload directory '/mnt/data/backuptest' to 'RepositoryURL' as test.pxar.didx
test.pxar: had to backup 620.983 MiB of 625.614 MiB (compressed 478.827 MiB) in 12.35s
test.pxar: average backup speed: 50.28 MiB/s
test.pxar: backup was done incrementally, reused 4.63 MiB (0.7%)
Uploaded backup catalog (110.521 KiB)
Duration: 12.54s
End Time: Fri Apr 1 18:00:07 2022
root@AnotherMachine:/mnt/data# proxmox-backup-client backup test.pxar:/mnt/data/backuptest
Starting backup: host/AnotherMachine/2022-04-01T16:00:59Z
Client name: AnotherMachine
Starting backup protocol: Fri Apr 1 18:00:59 2022
Downloading previous manifest (Fri Apr 1 17:59:54 2022)
Upload directory '/mnt/data/backuptest' to 'RepositoryURL' as test.pxar.didx
test.pxar: had to backup 0 B of 625.614 MiB (compressed 0 B) in 5.98s
test.pxar: average backup speed: 0 B/s
test.pxar: backup was done incrementally, reused 625.614 MiB (100.0%)
Uploaded backup catalog (110.521 KiB)
Duration: 6.35s
End Time: Fri Apr 1 18:01:06 2022
Here the output of the second backup is as expected: "had to backup 0 B of 625.614 MiB".
And what is more confusing and is another hint IMHO:
In these backups there are lines like "backup was done incrementally, reused..." (even when running the first time, which I also don't understand). These lines are completely missing in the docker-based client.
Any idea what I'm doing wrong in the docker-way?
Thx in advance