Backup Proxmox VE to the CLOUD! Backup Hook Scripts to push backups to S3-compliant cloud storage

Опубликовано: 13 Октябрь 2024
на канале: apalrd's adventures
18,146
403

Proxmox has a pretty good backup scheduler, but it relies on the backup destination being mounted as a storage location. This implies that the backup destination needs to be a protocol that Proxmox supports - SMB (CIFS), NFS, … or Proxmox Backup Server. If you want to push your backups to a cloud service, you probably need something a bit more complicated. Thankfully, Proxmox’s backup scheduler thought about this and has a hook feature we can use for this purpose, and we can use any protocol supported on the Debian base system, including things such as FUSE or s3cmd.

In this project, I integrate S3-compliant cloud object storage with the Proxmox backup scheduler, copying resulting backups to a cloud storage service directly from the Proxmox system. The S3 protocol is ubiquitous among cloud object storage providers, so we aren’t tied to AWS - we can use any service such as Backblaze. In my case, I’m demonstrating this with Linode.

YES, I deleted the access key after using it in this video. I didn't want to deal with blurring it.

Link to the blog post on this topic, which includes the final script I used for you to copy and paste:
https://www.apalrd.net/posts/2022/pve...

My Discord Server, where you can carry on the discussion or suggest future topics:
  / discord  

If you find my content useful and would like to support me, feel free to here: https://ko-fi.com/apalrd

Timestamps:
00:00 - Introduction
01:13 - PVE Backup Hook Scripts
07:12 - S3 Tools
10:45 - Backup Script
12:16 - S3 Cleanup Script
13:28 - Conclusions

Proxmox is a trademark of Proxmox Server Solutions GmbH
#proxmox