Backup All CT & VM from Proxmox to FTP


×
Backup All CT & VM from Proxmox to FTP (img)

Description:

This project is a comprehensive solution for automating the backup of Proxmox containers (CTs) and virtual machines (VMs). The script performs the following tasks:

  • Creates snapshot backups of all CTs and VMs using vzdump.
  • Compresses backups with zstd for efficient storage.
  • Automatically uploads the backups to a designated FTP server.
  • Lists the contents of the FTP directory post-upload and logs the results in /opt/ftp_history.txt.
  • Deletes backups older than 7 days from the FTP server to maintain storage efficiency.
  • Cleans up the backup history file every 30 days to avoid clutter.
  • Sends email notifications in case of any errors during backup or cleanup.

This tool is designed for Proxmox administrators who need a reliable and automated backup strategy with minimal manual intervention.

Tools:

All the tools that I used in this project:

Python Proxmox VE FTP vzdump zstd SMTP