{"id":2352,"date":"2024-08-31T03:00:11","date_gmt":"2024-08-31T01:00:11","guid":{"rendered":"http:\/\/192.168.1.213:8088\/?p=2352"},"modified":"2024-10-02T08:28:35","modified_gmt":"2024-10-02T06:28:35","slug":"my-proxmox-backup-strategy","status":"publish","type":"post","link":"http:\/\/192.168.1.213:8088\/my-proxmox-backup-strategy\/","title":{"rendered":"My Proxmox backup strategy"},"content":{"rendered":"\t\t
This will be one of my final posts in the Proxmox series, but I couldn\u2019t finish without covering a crucial topic\u2014backups. \ud83d\udee1\ufe0f<\/p>
Let\u2019s be honest: backups are often an afterthought, something we only think about when things go south, data disappears, or a strange combination of events leads to disaster. Way back in the day, I worked as a SAN\/back storage admin, so I know better than most the importance of solid backup strategies. Yet, despite that experience, I successfully ignored<\/em> proper backups for years\u2014fortunately, without major incidents. \ud83d\ude05<\/p> But as my home lab setup grew and became more complex, I realized it was time to step up my game. Proxmox has all the tools I need to build a solid disaster recovery (DR) plan, so why not use them?<\/p> Let\u2019s dive into the strategy I\u2019ve built using Proxmox\u2019s powerful features to ensure my data is safe, no matter what happens.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t First, it\u2019s important to mention that Proxmox already comes with a built-in backup solution, which for most users is more than sufficient. It allows you to create backups, schedule them, and even set up automatic snapshots. However, for those who want a more advanced, dedicated backup solution, Proxmox offers the Proxmox Backup Server (PBS)<\/strong>.<\/p> So, why is Proxmox Backup Server an improvement? Let me walk you through some key features that make it a more robust option:<\/p> Deduplication<\/strong>: One of the standout features of Proxmox Backup Server is its ability to deduplicate data. This means that only unique data blocks are stored, significantly reducing the storage footprint, especially for large virtual machines that have similar data across backups.<\/p><\/li> Incremental Backups<\/strong>: PBS offers incremental backups, which only store the differences between backups rather than duplicating entire virtual machine data. This not only saves space but also speeds up the backup process.<\/p><\/li> Compression<\/strong>: To save even more space, PBS supports compression. Data is compressed before it’s stored, helping to reduce the storage requirements and optimizing resource usage.<\/p><\/li> Encrypted Backups<\/strong>: For enhanced security, Proxmox Backup Server offers encryption of your backups, ensuring that your data is safe both in storage and during transfer.<\/p><\/li> Efficient Restore<\/strong>: PBS allows you to quickly restore entire VMs or even individual files. This flexibility ensures that you can recover your data as fast as possible in case of an emergency.<\/p><\/li> API and Remote Management<\/strong>: Proxmox Backup Server offers a robust API and allows for remote management, making it easier to integrate into your existing infrastructure and automate tasks.<\/p><\/li><\/ul> These features make PBS an excellent choice if you\u2019re looking for more control, efficiency, and security for your backup strategy in a home lab or even in more demanding environments.<\/p> I am running my PBS since the beginning. Here are some of my backups stats:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Now, let’s get down to business. Setting up Proxmox Backup Server (PBS) is straightforward\u2014just upload the PBS appliance and walk through the setup wizard. Proxmox makes it simple, and you’ll be up and running in no time.<\/p> Once you\u2019ve completed the initial setup, the next step is to mount an NFS share to the PBS machine. This ensures you have a designated storage location for all your backups. To make the mount persistent, you\u2019ll need to edit the Here\u2019s how to mount the NFS share and make it persistent across reboots:<\/p> This step ensures that the NFS share will automatically mount after a reboot, keeping your backup storage always accessible.<\/p> Once configured, your backups will flow seamlessly into your mounted storage. Below is a screenshot showing how to configure the storage path in Proxmox Backup Server.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Great, now that the NFS share is mounted and storage has been set up, the next step is to integrate the Proxmox Backup Server (PBS)<\/strong> with your Proxmox cluster. This is easily done by adding the PBS as a storage option in Proxmox, as shown in the picture below.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Once PBS is added to the cluster, the next critical task is to create a backup schedule<\/strong>. This allows you to automate the process, ensuring that your VMs are regularly backed up without manual intervention. Check out the screenshot below for how to set up a backup schedule in Proxmox.<\/p> Wow, is that it? Well, yes\u2014sometimes IT can be simple! But wait a minute\u2014what\u2019s the actual backup plan here? How do we make sure everything is recoverable in case of a disaster?<\/p> Setting up the PBS is one thing, but having a Disaster Recovery (DR) plan in place is equally important. It\u2019s not just about backing up data; it’s about ensuring you can restore everything quickly and efficiently in the event of failure. In the next section, we\u2019ll dive into my specific disaster recovery strategy and how Proxmox Backup Server plays a crucial role.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tProxmox backup server<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Implementation<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
fstab<\/code> file.<\/p>
\/etc\/fstab<\/code><\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\/mnt\/proxmox-backup<\/code>. This allows Proxmox to utilize the NFS share for backups.<\/li><\/ol>
Make sure not to set any retention in the job itself! This will be done in PBS.<\/h3>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Backup Plan: Preparing for Disaster Recovery<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t