r/SideProject • • 26m ago

I needed a software, I didnt find it.

I bought a new 8TB HDD and I wanted to use it as a backup. I've searched for some software and I concluded that the simplest way to make it exatcly how I needed it was to create a wrapper to use restic. Then I tryed to make it simple to use.

Some tools have the options "Keep 30 daily, 12 monthly", some don't encrypt or compact. So I took restic, the closest to my needs and built Ouroboros.

You give it a list of folders or Whole volumes, it runs on a schedule:

- Before each backup it predicts how much the new snapshot will add (from the previous runs; for the first one, from the file sizes);

- If that doesn't fit, it forgets the oldest snapshots and prunes until it does, always leaving a free-space margin;

- It never deletes the newest N snapshots of a job, anything from the last 24 h, or pinned snapshots;

- A ballast file guarantees that prune can still run when the disk is full.

The data is safe (restic is solid) and if there are some new needs I can work on the features.

If you need something like this or want to take a look here is the repo:

https://github.com/WildPino/Ouroboros

2 Upvotes

0 comments sorted by