BackupProxmoxVirtualization

Proxmox Backup Server with NFS repository configuration

Proxmox Backup Server with NFS repository configuration
293views

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.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 49

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 50

Click I agree to accept the EULA.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 51

Choose the Target Harddisk for the installation and click Next.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 52

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 53

Specify the Password and the Email address then click Next.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 54

Configure the Network Configuration settings and click Next.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 55

Click Install to begin the installation.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 56

Proxmox Backup Server is being installed.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 57

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 58

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 59

Login the server console using the address displayed.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 60

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 61

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 62

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 63

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 64

Proxmox Backup Server with NFS repository configuration

 

proxmox-backup-server-configuration-01

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.

proxmox backup server 2

Click I agree to accept the EULA.

proxmox backup server 3

Choose the Target Harddisk for the installation and click Next.

proxmox backup server 4

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

proxmox backup server 5

Specify the Password and the Email address then click Next.

proxmox backup server 6

Configure the Network Configuration settings and click Next.

proxmox backup server 7

Click Install to begin the installation.

proxmox backup server 8

Proxmox Backup Server is being installed.

proxmox backup server 9

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

proxmox backup server 10

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

proxmox backup server 11

Login the server console using the address displayed.

proxmox backup server 12

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.

proxmox backup server 14

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

proxmox backup server 16

Verify the granted permissions.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 65

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 66

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 67

This line will be appended to /etc/fstab.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 68

Mount the newly added volume with the command:

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 69

Reload the systemd daemon to recognize the fstab changes.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 70

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 71

Add the datastore to the server

Go back to the server console and click Add Datastore.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 72

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 73

The NFS datastore is being created.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 74

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 75

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.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 76

Enter the User name and Password then click Add.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 77

The newly created user.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 78

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 79

Click Add and select User Permission.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 80

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 81

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 82

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 83

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 84

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 85

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.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 86

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 with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 87

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.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 88

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 89

The backup is being executed.

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 90

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 91

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

Proxmox Backup Server with NFS repository configuration
Proxmox Backup Server with NFS repository configuration 92

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.

Leave a Response

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO