Streamlining Proxmox VE Backups with Autorestic

Proxmox VE is a powerful virtualization environment, and keeping a backup of its configuration is essential for disaster recovery. autorestic is a convenient tool that wraps restic backup functionality with an easier configuration approach. Let’s explore how to set up autorestic for Proxmox VE.

Installing Autorestic

Before using autorestic, you need to install it alongside restic. You can usually find autorestic on its official GitHub repository with instructions for your specific operating system.

Configuring Autorestic

With autorestic installed, you’ll need to create a configuration file called autorestic.yml. This file will define where your backups will be stored and what files should be backed up.

Here’s a simple example of an autorestic.yml for backing up your Proxmox VE configuration:

    from: /etc/pve
    to: local
    path: /path/to/backup_repo
    type: local

In this configuration, we’re defining a location called proxmox-config that backs up the /etc/pve directory to a backend called local, which is just a directory on your filesystem.

Running the Backup

To backup your Proxmox VE configuration with autorestic, you’d run:

autorestic backup -l proxmox-config

autorestic will take care of the rest, interfacing with restic to perform the backup.

Automating Backups

autorestic can also be scheduled with cron, just like restic. Add the following to your crontab:

0 2 * * * /usr/local/bin/autorestic backup -l proxmox-config --ci

This command will run the backup for the proxmox-config location every day at 2 AM, and the --ci flag ensures autorestic runs in non-interactive mode, suitable for automated scripts.


With autorestic, the complexity of managing backups with restic is greatly reduced, providing a user-friendly way to ensure your Proxmox VE environment is backed up regularly. Regular testing of your backup and restore processes is still essential to ensure data integrity.