Skip to content

u/Xonzo

In this archive from Aug 2019 to Dec 2024

0
posts
11
comments
0
media
70
score

https://pve.proxmox.com/wiki/Backup_and_Restore

The Proxmox backup vzdump backs up all the VM/CT's data AND configuration. If you want to backup local server SSH keys and whatever else you want... Add a hook in etc/vzdump.conf

script: (your backup program)

For example (sorry this is off the top of my head.. on my phone)

Borg create /root/repo::vzdump-{now:%Y-%m-%d} /etc /root

Because Borg is block/dedup based each subsequent backup is only the changed data, as in very small backups. Default compression is LZ4

Since vzdump already backs up the VM/CT configuration files. There really shouldn't be much else you need to backup. Try not to load the Proxmox server with stuff. Everything should be in a VM/CT.

You can run vzdump like: vzdump --all --mode snapshot or suspend

Alternatively you can tar the folders you want on the hook script instead of Borg.

As an exercise run the vzdump backup and it will tell you where the files are being stored, and you can look through the archives.

2 points

Replication or taring data / configuration are different use cases. Replication helps to protect against downtime from hardware issues. I would not look at it as a backup.

IMO use the built in backup process with guest tools installed on the VM so you get steady state, then use block deduplication backup software such as Borg or Restic.

So you would have replication going, if a server craps out you can just spool the server up without having to do a restore. If something goes wrong with software you just extract the backup image from Borg or Restic and restore that.

2 points

IME the replication works great for VM's in production (not a home lab). It's really simple to setup, and with a couple clicks you can have that VM up and running on a different server. I've never tried containers though.

Check out /etc/pve

Also check out: https://pve.proxmox.com/pve-docs/pmxcfs-plain.html

https://pve.proxmox.com/wiki/Cluster_Manager

It explains how to copy configurations over. Read up on Corosync. The databases should already be replicated and in sync. Ideally you should already be backing up all your configurations, VM's, containers etc.

Hope that helps.

2 points

Having 2 nodes can cause many splitbrain scenarios. IIRC you can use a Raspberry Pi just for the quorum if you want.

With 2 nodes I wouldn't make a cluster. Just do two way replication. So Node 1 replicates to Node 2, and Node 2 replicates to Node 1. If something craps out you lost a maximum of a minute of data.

There are other ways, but replication is very easy to setup reliably in Proxmox.

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←orβ†’
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.