Proxmox Backup Server with NFS repository configuration

62

The Proxmox Backup Server (PBS) is the Proxmox native solution designed to protect your workloads in case of failures.

Similar to the Proxmox hypervisor, PBS is an open-source solution that doesn’t require any license to operate.

proxmox-backup-server-configuration-01

Install Proxmox Backup Server

Obtain the Proxmox Backup Server ISO from the official Proxmox website.

As a best practice, the server should not be installed on the same host or cluster where VMs to be protected are running. It can be installed in either physical or virtual environment.

Run the installer and select Install Proxmox Backup server to proceed.

proxmox backup server configuration 03 600x450 1

Click I agree to accept the EULA.

Choose the Target Harddisk for the installation and click Next.

proxmox backup server configuration 05 600x376 1

Select Country, Time zone and Keyboard Layout then click Next.

Specify the Password and the Email address then click Next.

proxmox backup server configuration 07 600x375 1

Configure the Network Configuration settings and click Next.

Click Install to begin the installation.

proxmox backup server configuration 09 600x376 1

Proxmox Backup Server is being installed.

Once the installation is complete, click Reboot. Remember to disconnect the ISO image.

proxmox backup server configuration 11 600x376 1

When the server boots, select Proxmox Backup Server GNU/Linux.

Login the server console using the address displayed.

proxmox backup server configuration 13

Configure the NFS share in the Backup Server

Using your preferred browser, type the address: https://<server_ip>:8007. Enter the User name and Password then click Login.

When the console is displayed, click >_ Shell to access the the command-line interface.

proxmox backup server configuration 15 600x304 1

Create a new folder to be used as a mount point for storing backups.

Assign the necessary permissions to the newly created directory. The backup account, which will be created later, is used by the server to save backups to /mnt/repository.

proxmox backup server configuration 17

Proxmox Backup Server with NFS repository configuration

 

The Proxmox Backup Server (PBS) is the Proxmox native solution designed to protect your workloads in case of failures.

Similar to the Proxmox hypervisor, PBS is an open-source solution that doesn’t require any license to operate.

Install Proxmox Backup Server

Obtain the Proxmox Backup Server ISO from the official Proxmox website.

proxmox backup server 1

As a best practice, the server should not be installed on the same host or cluster where VMs to be protected are running. It can be installed in either physical or virtual environment.

Run the installer and select Install Proxmox Backup server to proceed.

Click I agree to accept the EULA.

proxmox backup server 3

Choose the Target Harddisk for the installation and click Next.

Select Country, Time zone and Keyboard Layout then click Next.

proxmox backup server 5

Specify the Password and the Email address then click Next.

Configure the Network Configuration settings and click Next.

proxmox backup server 7

Click Install to begin the installation.

Proxmox Backup Server is being installed.

proxmox backup server 9

Once the installation is complete, click Reboot. Remember to disconnect the ISO image.

When the server boots, select Proxmox Backup Server GNU/Linux.

proxmox backup server 11

Login the server console using the address displayed.

Configure the NFS share in the Backup Server

Using your preferred browser, type the address: https://<server_ip>:8007. Enter the User name and Password then click Login.

proxmox backup server 13

When the console is displayed, click >_ Shell to access the the command-line interface.

Create a new folder to be used as a mount point for storing backups.

# mkdir /mnt/repository

proxmox backup server 15

Assign the necessary permissions to the newly created directory. The backup account, which will be created later, is used by the server to save backups to /mnt/repository.

# chown backup:backup /mnt/repository
# chmod 775 /mnt/repository

Verify the granted permissions.

proxmox backup server configuration 18

Ensure you create an NFS share (/mnt/Pool01/Proxmox in the example) on the storage that will serve as your repository.

Now run the following command to add the mount point to the /etc/fstab file.

proxmox backup server configuration 20 600x56 1

This line will be appended to /etc/fstab.

Mount the newly added volume with the command:

proxmox backup server configuration 22 600x93 1

Reload the systemd daemon to recognize the fstab changes.

Assign the required permissions to the /mnt/repository folder once again.

proxmox backup server configuration 24

Add the datastore to the server

Go back to the server console and click Add Datastore.

Enter the Name for the datastore and the Backing Path corresponding to the /etc/repository path created earlier.

proxmox backup server configuration 26 600x345 1

The NFS datastore is being created.

When the operation is complete, the nfs-storage section (or the name you assigned in the previous step) will be displayed in the console. The NFS datastore is now successfully attached to the Proxmox Backup Server.

proxmox backup server configuration 28 600x269 1

Create the backup account

For security reason is not a good idea to run backups using the root account. Instead, create a dedicated user for this purpose.

Go to Configuration > Access Control and under User Management click Add.

Enter the User name and Password then click Add.

proxmox backup server configuration 30 600x290 1

The newly created user.

Assign Permissions to the NFS datastore

Now, you need to grant the newly created user permissions to access the NFS datastore.

In the left pane, click the datastore name created earlier (nfs-storage) then click Permissions.

proxmox backup server configuration 32 600x331 1

Click Add and select User Permission.

Enter the Path (this should be the path to your datastore like/mnt/repository), select the User (remember to append @pbs to the account name), and choose DatastoreAdmin as the Role. Click Add.

proxmox backup server configuration 34

The selected user will now have the necessary permissions to manage the NFS datastore.

Add the PBS Server to Proxmox cluster

To integrate your Proxmox Backup Server (PBS) with your Proxmox VE cluster, go to the PBS Dashboard area and click Show Fingerprint.

proxmox backup server configuration 36 600x234 1

Click Copy to copy the displayed fingerprint code to your clipboard.

Now login to a Proxmox host that is member of the cluster and navigate to Datacenter > Storage. Click Add and select Proxmox Backup Server.

proxmox backup server configuration 38 600x340 1

Specify IDServer (IP or FQDN) and provide Username and Password of the backup account created earlier on the PBS. Enter the Datstore name as it is reported in the PBS interface (nfs-storage in the example). Paste the fingerprint code you copied earlier into the Fingerprint field and click Add.

The Proxmox Backup Server will now be successfully added to your Proxmox VE cluster, making its datastores available for backup and restore operations.

proxmox backup server configuration 40 600x212 1

Test the backup

To verify that the configuration works as expected, you should perform a test backup and check the result.

Select a VM running in your Proxmox cluster then click Backup. Click Backup now.

From the Storage dropdown, select the PBS server you previously added to the cluster. Click Backup.

proxmox backup server configuration 42 600x303 1

The backup is being executed.

Depending on the VM size, after some minutes the backup is completed successfully.

proxmox backup server configuration 44 600x376 1

To confirm the success of your backup, ensure that the Task Summary on the Proxmox Backup Server (PBS) Dashboard displays a green check mark.

If NFS is your chosen protocol for backup storage and Proxmox is your solution for workload backups, then Proxmox Backup Server (PBS) is an affordable option that provides robust protection for your virtual environment.

80%
Awesome
  • Design
Leave A Reply

Your email address will not be published.

Verified by MonsterInsights