Corsinvest / cv4pve-barc

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

Comparision to backy2? #27

Open gardar opened 6 years ago

gardar commented 6 years ago

How does barc compare to backy2? https://github.com/wamdam/backy2

backy2 is obviously not tied to proxmox as barc is, but how about other features? backy2 documents talk about scrubbing, is this something that's taken care of in barc?

franklupo commented 6 years ago

Hi, what is scrubbing?

Best regards

gardar commented 6 years ago

Scrubbing is to ensure the backups is a error correction technique to ensure old backups are healthy, so in case the something happens to the backed up disk image (a failed disk or memory or something else) then next time the backup job is run the scrub will fix the that error.

This is also explained in the readme for backy2

Every backed up block keeps a checksum with it. When backy scrubs the backup, it reads the block from the backup target storage, calculates it's checksum and compares it to the stored checksum (and size). If the checksum differs, it's most likely that there was an error when storing or reading the block, or by bitrod on the backup target storage.

Then, the block and the backups it belongs to, are marked 'invalid' and the block will be re-read for the next backup version even if rbd diff indicates that it hasn't been changed.

Further info here: http://backy2.com/docs/scrub.html#why-scrubbing-is-needed

franklupo commented 6 years ago

Hi, The backup process is based on snapshots of ceph and local files. Except for the first image that is complete, subsequent backups are diff followed by the previous snapshot, and so on. If the local file or the ceph snapshot do not hesitate, the backup stops because something is wrong. This case is serious because the references have been deleted. With --keep the number of copies wanted is maintained, the number reached is merged with the first. This mechanism should not give any kind of problem mentioned above.

The idea of a barc is to immediately give a ready-to-use image through assemblies to be used even outside ceph in case of problems.

Best regards

gardar commented 6 years ago

Thanks for clearifying!

How about other backy2 features?

flames commented 5 years ago

Hello, I am running eve4pve barc for a while now and I am very satisfied. Thanks Daniele! Now, out of curiosity I tested backy2 and got interesting results. Please be aware I am only comparing features that I use my self, which is a Proxmox/Ceph cluster and a NFS backupstorage.

eve4pve barc pros:

eve4pve barc contras:

backy2 pros:

backy2 contras:

please let me append also a question here: barc creates a snapshot for every diff. it does not clean up the snapshots after successful backup. are those snapshots incremental deltas, so barc relates on all of them every night, or can i delete all but the very last snapshot per diskimage? In case of reset barc won't work, i need to move the old backups to different location... which is my default way: I run one initial and 6 diffs, then start over with barc reset and move old week backup to different folder every sunday. The problem is, my ceph can't hold more than 7-8 snapshots per diskimage, it gets full. Thanks in adavance

And, Daniele, please let me to leave a suggestion: You made an awesome script package with eve4pve, but it would be even more awesome, to write another script package which works with backy2. I have had a look at your site, so I know, you would definitely draw your benefits from it :)) ceph + backy2 + an automation like barc would be a bomb! Also I would try to help you, since we are more or less in the same boat.

Kind regards, Arthur