{"id":598,"date":"2023-06-10T14:16:23","date_gmt":"2023-06-10T12:16:23","guid":{"rendered":"https:\/\/petr.maxbox.cz\/?p=598"},"modified":"2023-06-10T14:28:17","modified_gmt":"2023-06-10T12:28:17","slug":"proxmox-backup-server-configuration","status":"publish","type":"post","link":"https:\/\/petr.maxbox.cz\/index.php\/2023\/06\/10\/proxmox-backup-server-configuration\/","title":{"rendered":"Proxmox Backup Server configuration"},"content":{"rendered":"\r\n\r\n\r\n\r\n\r\n<p>Original here: <a href=\"https:\/\/www.thomas-krenn.com\/en\/wiki\/Proxmox_Backup_Server_configuration\">https:\/\/www.thomas-krenn.com\/en\/wiki\/Proxmox_Backup_Server_configuration<\/a><\/p>\r\n<p><a href=\"https:\/\/www.thomas-krenn.com\/en\/products\/application\/virtualization\/proxmox-overview\/promox-backup\/proxmox-backup-server.html?utm_source=Wiki&amp;utm_medium=Banner&amp;utm_campaign=Proxmox%20Backup%20Server%20configuration\">BUY PROXMOX BACKUP SERVER SUBSCRIPTIONS<\/a><\/p>\r\n<p>After successful installation of the Proxmox Backup Server the\u00a0<strong>configuration via the web interface<\/strong>\u00a0can be done (<a href=\"https:\/\/ip:8007\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/IP:8007<\/a>). Be sure to specify the\u00a0<strong>port<\/strong>\u00a0correctly. This article shows\u00a0<strong>which steps<\/strong>\u00a0are necessary to set up a\u00a0<strong>Proxmox Backup Server<\/strong>.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.thomas-krenn.com\/en\/products\/application\/virtualization\/proxmox-overview\/promox-backup\/proxmox-backup-server.html?utm_source=Wiki&amp;utm_medium=Banner&amp;utm_campaign=Proxmox%20Backup%20Server%20configuration\"><img decoding=\"async\" src=\"https:\/\/www.thomas-krenn.com\/de\/wikiDE\/images\/f\/f3\/Kategorie-Proxmox.png\" alt=\"Buy Proxmox Backup Server Subscriptions\" \/><\/a><\/figure>\r\n\r\n\r\n\r\n<p>Contents<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Create ZFS Pool &amp; Create Datastore<\/li>\r\n\r\n\r\n\r\n<li>Prune &amp; Garbage Collection configuration<\/li>\r\n\r\n\r\n\r\n<li>Create &amp; store backup user<\/li>\r\n\r\n\r\n\r\n<li>Add Proxmox Backup Server<\/li>\r\n\r\n\r\n\r\n<li>Perform Proxmox Test Backup<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Create ZFS Pool &amp; Create Datastore<\/h3>\r\n\r\n\r\n\r\n<p>In this section, we will show you how to create a ZFS pool and backup datastore.<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/01_Initialize_Disks_PBS.png\">Initialize Disks<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/03_Datastore_View_PBS.png\">Create ZFS Pool <\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/02_ZFS_Create_PBS.png\">Datastore Summary<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>First you have to initialize all disks you want to use for the backup datastore with GPT, this can be done in the GUI via\u00a0<em>Administration &gt; Storage \/ Disks &gt; Initialize with GPT&#8217;<\/em>\u00a0or on the command line with<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sgdisk \/dev\/sdX<\/pre>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Then a ZFS pool is created via\u00a0<em>Administration &gt; Storage \/ Disks &gt; ZFS<\/em>.<\/li>\r\n\r\n\r\n\r\n<li>A name is assigned, the RAID level is selected, compression and ashift can usually be left at default values.<\/li>\r\n\r\n\r\n\r\n<li>With ashift you control the block size &#8211; ashift 12 means 2 to the power of 12 = 4096B = 4K block size.<\/li>\r\n\r\n\r\n\r\n<li>Then select the desired media and press OK.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>In this test, we used a RAID mirror, but a RAID-10 or RAID-Z2\/ RAID-Z3 can also be used for a larger number of hard disks. Proxmox recommends SSD-only for backup storage. If this is not feasible for cost reasons, we recommend the use of a ZFS Special Device (ZFS Instant Log &#8211; ZIL-Device). &#8211; for example Intel Optane. Once the pool has been created, it is automatically included in the PBS as a backup datastore. Now you can see the created datastore under\u00a0<em>Datastore &gt; pbs-local<\/em>.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Prune &amp; Garbage Collection configuration<\/h3>\r\n\r\n\r\n\r\n<p>This section defines and sets the retention periods of the backups:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Under\u00a0<em>Datastore &gt; pbs-local &gt; Prune &amp; GC<\/em>\u00a0you can set how many backups should be kept and when the garbage collection should be performed.<\/li>\r\n\r\n\r\n\r\n<li>The best way to plan and orient yourself is by using the\u00a0<a href=\"https:\/\/pbs.proxmox.com\/docs\/prune-simulator\" target=\"_blank\" rel=\"noreferrer noopener\">Proxmox Prune Simulator<\/a>.<\/li>\r\n\r\n\r\n\r\n<li>If the desired setting was found, you can set these via Edit and now the Datastore is configured.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>Thomas Krenn recommends a test phase when introducing the Proxmox backup server to find the correct settings for Prune and GC. The Prune simulator helps very well here.<\/p>\r\n\r\n\r\n\r\n<p><strong>Explanation of Prune<\/strong>: Prune checks whether certain backups can be removed from the index based on the set retention periods. The index contains the information about all blocks of the backups, which could be restored to another system via the PBS. For example, if there are 6 versions of a block = 6 backups and a retention of 5 is set, Prune will delete the oldest version of the block from the index during the Prune Schedule, so that the retention is correctly maintained again and only 5 versions of the block are left. When Prune does this can be set via &#8220;Prune Schedule&#8221;. No load is created on the storage during the process, so the Prune Schedule can be executed at any time.<\/p>\r\n\r\n\r\n\r\n<p><strong>Explanation Garbage Collection<\/strong>: The garbage collector grabs the blocks excluded from the index by Prune and also deletes them from the storage. This creates load on the storage and may take longer if there are many backups. Depending on your needs, we recommend running the garbage collection once a day or once a week.<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/04_Prune__GC_PBS.png\">Prune &amp; Garbage Collection in PBS<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Create &amp; store backup user<\/h3>\r\n\r\n\r\n\r\n<p>By default the user\u00a0<em>root@pam<\/em>\u00a0has full access. Via\u00a0<em>Configuration &gt; Accesscontrol &gt; User Management<\/em>\u00a0additional users can be created, whose rights can be restricted under\u00a0<em>Permissions<\/em>. By default, every newly created user has the role NoAccess. The roles and permissions concept can be seen in the\u00a0<a href=\"https:\/\/pbs.proxmox.com\/docs\/user-management.html#access-control\" target=\"_blank\" rel=\"noreferrer noopener\">Proxmox documentation<\/a>. At the datastore level, the assignment is even easier. Under\u00a0<em>Datastore &gt; pbs-local<\/em>\u00a0you can assign\u00a0<em>Permissions<\/em>\u00a0to created users accordingly to the datastore and assign a role.<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/04-1_Add_Permissions_PBS.png\">User Permissions in Proxmox BS<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Add Proxmox Backup Server<\/h3>\r\n\r\n\r\n\r\n<p>This section explains how to add the Proxmox Backup Server in a PVE system:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>To add the Proxmox Backup Server now to a Proxmox Single Host or a Proxmox Ceph Cluster first copy the fingerprint of the PBS in the\u00a0<em>Dashboard.<\/em><\/li>\r\n\r\n\r\n\r\n<li>Then go to the PVE system or PVE cluster and add the Proxmox Backup Server under\u00a0<em>Datacenter &gt; Storage &gt; Add &gt; Proxmox Backup Server<\/em>.<\/li>\r\n\r\n\r\n\r\n<li>Under\u00a0<em>ID<\/em>\u00a0one assigns the Proxmox-VE local datastore ID,\u00a0<em>Server<\/em>\u00a0one specifies the IP address or the host name of the Proxmox Backup Server.<\/li>\r\n\r\n\r\n\r\n<li><em>Username<\/em>\u00a0you have to specify the\u00a0<strong>LOCAL Proxmox-VE-PAM User<\/strong>, here is root not enough. Here in our test scenario this is\u00a0<em>root@pam<\/em>.<\/li>\r\n\r\n\r\n\r\n<li>Under\u00a0<em>Datastore<\/em>\u00a0enter the name of the datastore of the Proxmox Backup Server.<\/li>\r\n\r\n\r\n\r\n<li>Finally add the copied fingerprint of the PBS and add the server to Proxmox VE with\u00a0<em>Add<\/em>.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/05_Copy_Fingerprint_PBS.png\">Copy Proxmox PBS fingerprint<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/06_Add_PBS_in_PVE_PBS.png\">Add Proxmox PBS in Proxmox VE<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Perform Proxmox Test Backup<\/h3>\r\n\r\n\r\n\r\n<p>Now that the PBS is stored in the Proxmox VE system, you can perform a test backup. The best way to do this is to perform a one-time backup by clicking either on a container or on a VM and selecting\u00a0<em>Backup &gt; Backup now<\/em>. Please note the different\u00a0<a href=\"https:\/\/pve.proxmox.com\/pve-docs\/pve-admin-guide.html#_bac\" target=\"_blank\" rel=\"noreferrer noopener\">backup modes<\/a>, which are well described in the Proxmox documentation. After a successful backup you can see the backup in the PVE in the GUI as well as on the Proxmox Backup Server.<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/07_Create_Backup_Now_PBS.png\">Start Backup of a Container<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/07-1_Container_Backup_Finished-VE-PBS.png\">Backup finished (PVE)<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/07-2_Container_Backup_Finished-PBS.png\">Backup finished (<\/a><a href=\"https:\/\/petr.maxbox.cz\/wp-content\/uploads\/2023\/06\/07-2_Container_Backup_Finished-PBS.png\">PBS)<\/a><\/li>\r\n<\/ul>\r\n","protected":false},"excerpt":{"rendered":"<p>Original here: https:\/\/www.thomas-krenn.com\/en\/wiki\/Proxmox_Backup_Server_configuration BUY PROXMOX BACKUP SERVER SUBSCRIPTIONS After successful installation of the Proxmox Backup Server the\u00a0configuration via the web interface\u00a0can be done (https:\/\/IP:8007). Be sure to specify the\u00a0port\u00a0correctly. This article shows\u00a0which steps\u00a0are necessary to set up a\u00a0Proxmox Backup Server. Contents Create ZFS Pool &amp; Create Datastore In this section, we will show you how<\/p>\n<p class=\"text-right\"><span class=\"screen-reader-text\">Continue Reading&#8230; Proxmox Backup Server configuration<\/span><a class=\"btn btn-secondary continue-reading\" href=\"https:\/\/petr.maxbox.cz\/index.php\/2023\/06\/10\/proxmox-backup-server-configuration\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-598","post","type-post","status-publish","format-standard","hentry","category-nezarazene"],"_links":{"self":[{"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/posts\/598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/comments?post=598"}],"version-history":[{"count":7,"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/posts\/598\/revisions"}],"predecessor-version":[{"id":615,"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/posts\/598\/revisions\/615"}],"wp:attachment":[{"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/media?parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/categories?post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/petr.maxbox.cz\/index.php\/wp-json\/wp\/v2\/tags?post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}