{"id":6522,"date":"2026-01-07T08:12:28","date_gmt":"2026-01-07T07:12:28","guid":{"rendered":"https:\/\/roccadomenico.it\/wordpress\/?p=6522"},"modified":"2026-01-09T22:03:20","modified_gmt":"2026-01-09T21:03:20","slug":"proxmox-backup-client-how-to-install-it-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/roccadomenico.it\/wordpress\/proxmox-backup-client-how-to-install-it-on-ubuntu-22-04\/","title":{"rendered":"Proxmox Backup Client how to install it on Ubuntu 22.04"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"6522\" class=\"elementor elementor-6522\">\n\t\t\t\t<div class=\"elementor-element elementor-element-763f7f4 e-flex e-con-boxed e-con e-parent\" data-id=\"763f7f4\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6cac57f elementor-widget elementor-widget-text-editor\" data-id=\"6cac57f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>download debian file from: <a href=\"http:\/\/download.proxmox.com\/debian\/pbs-client\/dists\/bullseye\/main\/\">http:\/\/download.proxmox.com\/debian\/pbs-client\/dists\/bullseye\/main\/<\/a><\/p><p>the correct file to choose is: proxmox-backup-client-static_3.4.7-1_amd64.deb\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-13c8f3e e-flex e-con-boxed e-con e-parent\" data-id=\"13c8f3e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d66ee49 elementor-widget elementor-widget-text-editor\" data-id=\"d66ee49\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>go to the folder where you downloaded it and run it with:<\/p><p><strong>sudo apt install .\/proxmox-backup-client-static_3.4.7-1_amd64.deb<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2bf9d4e e-flex e-con-boxed e-con e-parent\" data-id=\"2bf9d4e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-aa8bb90 elementor-widget elementor-widget-text-editor\" data-id=\"aa8bb90\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>create a hidden folder on your home where you will store the login credentials for the Proxmox Backup Server on which you will save the backups.<\/p><p>in my case I created the following in my home directory with<\/p><p><strong>mkdir .config\/proxmox-backup-client\/user_che_ha_accesso_al_datastore@192.168.123.124:8007<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-745a43d e-flex e-con-boxed e-con e-parent\" data-id=\"745a43d\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4d77661 elementor-widget elementor-widget-text-editor\" data-id=\"4d77661\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>inside it create the .config file containing the configuration for accessing the PBS<\/p><p>in my case i named it SERVERHP.cfg<\/p><p><strong>nano SERVERHP.cfg<\/strong><\/p><p>populate it with the following data:<\/p><p><strong>user=user_che_ha_accesso_al_datastore@pbs<\/strong>\u00a0<em>(user who has access to PBS)<\/em><br \/><strong>password=&#8221;password&#8221;\u00a0<\/strong><em>(the password you use to access PBS without the quotes)<\/em><br \/><br \/><\/p><p>save<strong> CTRL+O<\/strong> exit <strong>CTRL+X<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8dce633 e-flex e-con-boxed e-con e-parent\" data-id=\"8dce633\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-01e16ef elementor-widget elementor-widget-text-editor\" data-id=\"01e16ef\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Now we need to use the user&#8217;s token ID to log in without having to enter the datastore credentials each time.<br \/>On the PBS GUI, under &#8220;Access Control,&#8221; we&#8217;ll need to create the user, grant them permissions to access the datastore, and create the token ID (note that it&#8217;s only shown once, so save it).<br \/>Once the user and token ID have been created, go to the datastore (in my case, SERVERHP) and add the token ID you created.<br \/>Once this is done on the client:<\/p><p><strong>export PBS_PASSWORD=&#8217;token_creato&#8217;\u00a0<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-659de2c e-flex e-con-boxed e-con e-parent\" data-id=\"659de2c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2c8aa78 elementor-widget elementor-widget-text-editor\" data-id=\"2c8aa78\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To create the backup you need to run from the command line<\/p><p>Let&#8217;s say I want to create a backup of the \/mnt\/CONDIVISA folder and I want to name the backup &#8220;condivisa&#8221; (<em>the name of the backup we will create must be expressed with the .pxar extension<\/em>)<\/p><ul><li>in my case the<strong> datastore on PBS is called &#8220;SERVERHP&#8221;<\/strong><\/li><li>PBS has ip 192.168.123.124<\/li><li>user:<strong>backup_user<\/strong><\/li><li>I&#8217;ve chosen to backup the folders: <strong>\/mnt\/CONDIVISA<\/strong> and <strong>\/var\/log<\/strong><\/li><li>I chose the<strong> &#8220;host&#8221; backup mode<\/strong> which is recommended for this kind of backup<\/li><\/ul><p>(I use sudo command followed by<strong> -E<\/strong> to make sudo inherit the environment variable created for the user &#8220;backup_user&#8221; which otherwise would not work with root alone)<\/p><p><strong>sudo -E proxmox-backup-client backup \\<\/strong><br \/><strong>condivisa.pxar:\/mnt\/CONDIVISA \\<\/strong><br \/><strong>varlog.pxar:\/var\/log \\<\/strong><br \/><strong>&#8211;repository &#8216;backup_user@pbs!token_backupuser@192.168.123.124:8007:SERVERHP&#8217; \\<\/strong><br \/><strong>&#8211;backup-type host<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7e1bbde e-flex e-con-boxed e-con e-parent\" data-id=\"7e1bbde\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b77d64d elementor-widget elementor-widget-text-editor\" data-id=\"b77d64d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Now we automate the execution every day at 3:00 AM with a cron job..<\/p><p>Instead of running the command directly in cron, it&#8217;s cleaner to create a script, for example:<\/p><p><strong>\/usr\/local\/bin\/pbs_backup.sh<\/strong><\/p><hr \/><p>sudo nano&#8230;<\/p><p>#!\/bin\/bash<\/p><p># Variabile del token<br \/><strong>export PBS_PASSWORD=&#8217;token_id&#8217;<\/strong><\/p><p># Backup con sudo e variabile ereditata<br \/><strong>sudo -E proxmox-backup-client backup \\<\/strong><br \/><strong>condivisa.pxar:\/mnt\/CONDIVISA \\<\/strong><br \/><strong>varlog.pxar:\/var\/log \\<\/strong><br \/><strong>&#8211;repository &#8216;backup_user@pbs!token_backupuser@192.168.123.124:8007:SERVERHP&#8217; \\<\/strong><br \/><strong>&#8211;backup-type host<\/strong><\/p><p><strong>&gt;&gt; \/var\/log\/pbs_backup.log 2&gt;&amp;1<\/strong><\/p><hr \/><p>Then make the script executable:<\/p><p><strong>sudo chmod +x \/usr\/local\/bin\/pbs_backup.sh<\/strong><\/p><p>Open the crontab of the user running the backup (root if you want to use sudo without a password):<\/p><p><strong>sudo crontab -e<\/strong><\/p><p><strong>0 3 * * * \/usr\/local\/bin\/pbs_backup.sh<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>download debian file from: http:\/\/download.proxmox.com\/debian\/pbs-client\/dists\/bullseye\/main\/ the correct file to choose is: proxmox-backup-client-static_3.4.7-1_amd64.deb\u00a0 go to the folder where you downloaded it and run it with: sudo apt install .\/proxmox-backup-client-static_3.4.7-1_amd64.deb create a hidden folder on your home where you will store the login credentials for the Proxmox Backup Server on which you will save the backups. in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[30],"tags":[],"class_list":["post-6522","post","type-post","status-publish","format-standard","hentry","category-informatica"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts\/6522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/comments?post=6522"}],"version-history":[{"count":18,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts\/6522\/revisions"}],"predecessor-version":[{"id":6549,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts\/6522\/revisions\/6549"}],"wp:attachment":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/media?parent=6522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/categories?post=6522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/tags?post=6522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}