r/Backup • u/the-i • Jul 23 '21
Kopia vs Duplicacy
Anyone with experience with these two?
Many people seem to use Duplicacy, but it's quite hard to find info about Kopia.
The UI's and the way they're set up to work from a workflow perspective is quite different, but I feel like behind the scenes the backup mechanism is probably similar?
Specifically, I'm trying to figure out how their de-duplication and compression performance compares (when using multiple backup sets to the same destination). Duplicacy makes a big fuss about being the first and only backup program to de-duplicate all backup sets sent to the same destination (lock free deduplication they call it) - but as far as I can tell, Kopia will also do this? Is this correct? Anyone know how they compare in this regard?
Unfortunately both products have so little status information about what they're up to that it's fairly hard to quickly compare this stuff (I'm yet to figure out how to even get the entire size of a backup set in Kopia (i.e. a set of snapshots), for example - maybe it's not even possible?) and for all its pretty graphs, Duplicacy doesn't really tell me anything useful either.
2
u/wells68 Jul 23 '21
Kopia: 200 GiB in 3.4 hours. Restic: 24 hours. See: https://blog.kasten.io/benchmarking-kopia-architecture-scale-and-performance
I couldn't find a Kopia/Duplicacy comparison. Duplicacy is 50% faster than Restic in some tests, so I speculate that Kopia wins on speed by a wide margin.
u/ssps points out the many pitfalls of a newish application without a sizable community. But if you are looking for a fast, efficient personal backup application for redundant backups (secondary backups), why not Kopia?
3
u/ssps Jul 23 '21
Performance in MBps is a meaningless and a bad metric for a backup tool - albeit easy to measure one. It does not matter (ok, let's rephrase it into "it's not that important") how fast it is -- it's supposed to run in the background, heavily throttled, uploading the data from a filesystem snapshot without using too much CPU and not interfering with user activities. Does it run 4x times slower than competitor? As long as it manages to upload new data between the runs it does not matter. And here likely you will be limited by network upstream performance, and not local CPU.
What does matter is integrity, robustness, stability, resilience to datastore corruption, ability to recover (if partially) from corruptions, handling of poor network conditions, handling of unreliable storage (bit rot, bad sectors), etc.
Then if we do talk about performance -- what matters is not how fast the app backs up new data -- this will happen infrequently: only once -- initial backup; subsequent periodic uploads of incremental differences will be too small to matter; -- what doe smatter is how much resources does scan for changes take. This will happen every 15 minute or hourly or whatever your favorite cadence is.
Again, I'm not arguing what tool is faster -- I honestly have no idea, speed was never a factor to pick a backup tool for me -- but pointing out that speed receives way too much attention for no good reason while other factors (like what happens if you pepper the backup datastore with random bits -- what will be recoverable?) are never discussed. Lets discuss that.
1
u/the-i Jul 23 '21
Thanks.
I'm with ssps on the times - I don't really care how long a backup takes, so long as it's reasonable.
However the data storage size I am interested in (and given that most people pay per size, I'd imagine most people are interested in this). I want the highest level of de-duplication and compression reasonably possible.
Another factor is how well it can handle the metadata needed to handle huge levels of de-duplication. Over time, the amount of data associated with file versions and deleted files can become an issue. Unfortunately, no one seems to test this. They just back up one set of files and measure stuff. What happens if you back up 2M small files, delete half, modify the other half, and repeat that 100 times? 1000 times? Every hour, with pruning time factored in? How fast is it then? These are the kinds of stats I'd be interested in.
I can tell from the simple choices made in the UI designs that none of these programs are designed to handle serious amounts of data (or alternatively they really didn't think the UI's through very well), as they'd fail dismally if you had thousands of snapshots.
As an example, I have 4 years of data backed up with CrashPlan, backing up several million files hourly with a sliding window of version retention that still kept a few hundred versions a year, and I am in the process of reducing the number of versions kept due to cache sizes starting to become unmanageable to their maintenance routines (pruning starts to exceed backup time, at which point the two interrupt each other, and everything goes horribly wrong...). I'm doubtful any of these programs could manage that - their UI's most definitely couldn't anyway? Or can they? That's the kind of testing I'd like to see.
1
u/the-i Jul 23 '21
why not Kopia?
That is the question I am trying to answer! So far one answer suggests Kopia to be unstable and have unreliable data storage... both pretty good reasons to not use Kopia, if true.
So I guess the other question is, why not Duplicacy? The CLI is free and open-source, and seems to be more mature and more trustworthy than Kopia.
Also, am I the only one that finds it odd that a product by Veeam (Kasten) would use Kopia as a backup solution, when Veeam is basically a backup company that makes their own backup and disaster recovery products?
2
Jul 25 '21
[removed] — view removed comment
2
u/the-i Jul 28 '21 edited Jul 28 '21
by all means try out kopia in addition to your current backup scheme
Yes, of course. I am not intending to use it as a backup solution at all - more of a best-effort local versioning system.
That being said, now that I've played around with kopia some more, it's so incredibly buggy that I'm not sure it's really usable for anything other than very specific use-cases at this stage, and it seems to suffer from the same incredibly limiting limitation that a lot of these products do - whoever made it seems to have made the (to me absurd) design assumption that one would only ever want to backup a single directory at a time - or at least, if there is some way to specify complex backup sets, I couldn't figure it out.
I'm not at all impressed with Duplicacy either however. Considering their UI is a paid product, I find it almost offensive how little effort they've put in to it. It looks like they downloaded a generic theme (https://www.creative-tim.com/product/paper-dashboard apparently) and spent half an hour adding in the absolute minimum features required to allow one to do the most basic backup possible, and then started selling it. If it had just come out a week ago and they were still busy "finishing it off" then that might be ok... but apparently it's supposed to be a fully-featured paid product?
10
u/ssps Jul 23 '21
Context: long time Duplicacy user here, and tried Kopia recently for a month.
For production use Kopia is not even a contender — it is still alpha. Only compatibility (migration from) with previous version is promised, and as expected with software version 0.xxx any breaking changes can happen any time.
During my time trying Kopia with local SFTP storage I managed to corrupt the datastore twice, both cases failed to recover. I admit, it could have been my fault, but that never happened with duplicacy, and it should not have been that easy to accomplish for a novice user.
Approach to deduplication is indeed similar. Generally, on paper, there are a lot of compelling features that build on what duplicacy does and move that forward.
Advantages of kopia:
backup configuration is stored on the destination
built-in UI server
hierarchical configuration profiles
ability to mount backup history as a virtual drive. It’s nice and frequently requested feature on duplicacy forums.
support to run server side component to facilitate ACLs.
disadvantages of Kopia:
does not support extended attributes driven exclusions (for example to exclude all Files skipped by Time Machine on a mac). My suggestion to implement that on the forums was met with complete silence.
rather complex multilevel datastore structure that if corrupted not clear how to recover.
no stable version yet — so not suitable for production
very limited support for cloud destinations (no *Drive type services. Can be workaround with rclone destination but this adds a layer of complexity).
unclear future and support model — most questions and requests are answered by “here is source, pull requests are welcome”. The dude works at google and develops it on the weekends. At which point will he throw in the towel?
Generally, not very friendly support forum — this is subjective of course.
Advantages of duplicacy
erasure coding making possible use of ureliable storage (hard drives) as backup destination a
simple datastore structure. Easy to recover from corruptions
tons of cloud destinations supported, including google drive
support for asymmetric RSA encryption (different backup and restore keys)
rather simple to make it work with immutable storage
super fast exclusion patters, including regex
out of the box support for excluding known transient files (such as TimeMachine exclusion by xattr) — this drastically reduces the need to write custom exclusion patters.
has stable version and exists for a long time.
outstanding suppprt where the developer responds quickly and fixes issues users face even while using the products in most weird and unsupported scenarios (I’m one of those users)
friendly community.
Disadvantages of duplicacy:
most advanced settings are not in UI, and some UI areas require a lot of rework (exclusion patters, restore workflow)
does not support mounting the backup history as
For graphs in duplicacy — I don’t really use their UI. And with Kopia — don’t see the reason to use theirs either: You configure backup tool once, save configuration and replicate it on all machines (strangely, it’s sometimes easier for duplicacy because config is stored client side). There is no need for a background tool to have a UI. But I understand that some users prefer that. I tried both, and both need quite a bit of work to be usable.
My two cents so far. If I think of something else I’ll add :)