Need help with proxmox-stuff?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

174 Stars 36 Forks MIT License 39 Commits 4 Opened issues


This is a collection of stuff that I wrote for Proxmox.

Services available


Need anything else?

Contributors list

No Data

Proxmox stuff

This is a collection of stuff that I wrote for Proxmox.



** B E T A ! ** I just wrote this script quick and dirty. Not tested yet! But it might still be of help.


  • Download the script
    cd /root/; wget -qO-
  • Set the permanent backups directory
  • Make the script executable
    chmod +x ./
  • Shut down ALL VMs + LXC Containers if you want to go the save way. (Not required)
  • Run the script


On my machine, you end up with a GZipped file of about 1-5 MB with a name like "proxmoxbackupproxmoxhostname_2017-12-".
Depending upon how you schedule it and the size of your server, that could eventually become a space issue so don't
forget to set up some kind of archive maintenance.

To restore, move the file back to proxmox with cp, scp, webmin, a thumb drive, whatever.
I place it back into the /var/tmp directory from where it came.

# Unpack the original backup
tar -zxvf proxmox_backup_proxmoxhostname_2017-12-
# unpack the tared contents
tar -xvf proxmoxpve.2017-12-
tar -xvf proxmoxetc.2017-12-
tar -xvf proxmoxroot.2017-12-

If the services are running, stop them:

for i in pve-cluster pvedaemon vz qemu-server; do systemctl stop $i ; done

Copy the old content to the original directory:

cp -avr /var/tmp/var/tmp/etc /etc cp -avr /var/tmp/var/tmp/var /var cp -avr /var/tmp/var/tmp/root /root

And, finally, restart services:

for i in qemu-server vz pvedaemon pve-cluster; do systemctl start $i ; done

If nothing goes wrong, and you have separately restored the VM images using the default ProxMox process.
You should be back where you started. But let's hope it never comes to that.


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.