Add the client repo - Official Docs
echo "deb http://download.proxmox.com/debian/pbs-client bookworm main" | tee /etc/apt/sources.list.d/pbs-client.list
Install the client
apt install proxmox-backup-client
Login to the the PBS server
proxmox-backup-client login --repository pbs-backup-client@pbs@192.168.55.4:8007
Run the backup command
proxmox-backup-client backup <archive-name>.<type>:<source-path> --repository <username>@<authRealm>@<pbsHost>:<pbsPort>:<dataStore>
Example
proxmox-backup-client backup root.pxar:/ --repository pbs-backup-client@pbs@192.168.55.4:8007:DataStore1
If libssl1.1 isn't available via apt
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
Create a script that the backup command will be built in.
touch /usr/bin/pbs-backup.sh
chmod 700 /usr/bin/pbs-backup.sh
vim /usr/bin/pbs-backup.sh
#!/bin/bash
backupServer="172.16.8.4"
backupPort="8007"
dataStore="myDatastore"
nameSpace="myNamespace"
srvUsername="pbs-backup-client"
srvPassword="***********"
srvFingerprint="********"
realm="pbs"
backupID=$(hostname)
export PBS_PASSWORD="$srvPassword"
export PBS_FINGERPRINT="$srvFingerprint"
sleep 1
proxmox-backup-client backup root.pxar:/ --repository $srvUsername@$realm@$backupServer:$backupPort:$dataStore --backup-id $backupID --ns $nameSpace
Create a cron job to run the script
0 0 * * * /usr/bin/bash /usr/bin/pbs-backup.sh