Kopia, as an alternative to Borg within single threaded, resource constrained systems?
a month ago by kiol to c/linuxadmin
Been looking into resource constraining Kopia through systemd to prevent the Go binary from eating through too many resources. Anyone running a system like this?
Ah okay. Like in the sense that those other services might not survive, or just performance degradation?
Cause I'm thinking otherwise I'd just run the backup overnight or something. 😅 But that might still not be feasible of course.
Performance degradation, but figured I'd ask outside opinions. So far, sounds like performance is solid relative to resource usage. I'll give it a go and play around with letting it run mult-core vs single core.
I have run it for several years overnight without issue, backing up around 10GiB, but can only vouch for the stability of the solution and not its behaviour under constrained resources. I had come from duplicati which always ended up with a corrupt database I could not restore from. This project has been a solid replacement, so I would recommend giving it a go.
In general, if you want to decrease CPU and memory usage, the first and foremost thing you should do is decrease parallelism via the kopia settings (i. e. either as a global policy for scheduled backups, or directly as parameter when creating a snapshot). No idea about kopia-ui, but the settings are probably exposed there? Not a ui user.
You can also decrease resource usage by tweaking compression settings, or disabling compression completely.
Once that is done, you can experiment with hard limits. I'm not sure how resilient kopia is in the presence of those, or how performance might suffer - all I can say is I backed up 2TB of data just 3 or 4 days ago using reasonable settings, and it did not tax the host overly much.
go to feed...
go to feed...
How come you don't want it to use resources? Unused RAM is wasted RAM etc. I'm sure you have legitimate reasons, I'm just curious what they might be. 😁
save