proxmox backup script

sdpve

Member
Mar 10, 2018
22
0
6
44
I made the following script to backup my proxmox settings. If I need to reinstall proxmox, I want to be able to look up what configuration I had before. Eventually, I will make a restore script, but since I have such few settings so far, all I need to do is save them so I can look up what I did before in case I forget something.

-----------------
sqlite3 /var/lib/pve-cluster/config.db ".backup '/mnt/pveusb/pvebackup/backup_config.db'"
cp /etc/network/interfaces /mnt/pveusb/pvebackup/
cp -Hr /etc/pve/* /mnt/pveusb/pvebackup/
vzdump 100 --compress lzo --mode snapshot --storage usbvmbackup
-------------------

It works fine, just wondering if I missed anything? From what I read, on the forums, it mentioned the sqlite3 config.db backup was all I needed. But then I looked at that file and it seemed very light. Definitely didn't have interfaces file in there. So I want to make sure I saved everything.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!