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.
-----------------
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.