Corsinvest / cv4pve-barc

Backup And Restore Ceph for Proxmox VE
https://www.cv4pve-tools.com
GNU General Public License v3.0
82 stars 22 forks source link

freeze fs before snapshots #30

Closed aderumier closed 4 years ago

aderumier commented 6 years ago

Hi,to have consistency, we need to freeze/unfreeze the filesystem if qemu-agent is available. (Proxomox implemented it with backup and snapshots)

qm agent fsfreeze-freeze

do the snasphot of all drives

qm agent fsfreeze-thaw

franklupo commented 6 years ago

Good idea

mhubig commented 6 years ago

You could use something like this instead of rbd snap create to make the snapshot:

pvesh create /nodes/pve-node-01/qemu/100/snapshot -snapname test -vmstate 0

franklupo commented 6 years ago

Hi, Thanks for the idea. I'm reworking the new version. Your solution does not let you know when the snapshot is over. You could analyze the task but with the bash commands it's complicated. I'm developing a cli in a new language. The new version uses APIs and takes Proxmox snapshots.

Best regards

mhubig commented 6 years ago

Good news, I'm really looking forward to it! Are you using Python?

BTW: Thank you for the good work!

franklupo commented 6 years ago

Hi, no, C# .Net Core

lephisto commented 4 years ago

Done here: https://github.com/lephisto/cv4pve-barc/commit/92bd791e0dd34d7bccdfd85745d74f6bd17da265