Trying to understand (160 GB of data becoming 1 TB)

Hi there,

First of all thank you so much for accepting me here and as well for so great tool like restic.

I just started using it (today, to be more specific), and as I consider backups a crucial thing, I am trying to understand how things works.

I am coming from some years using rsync, and would love to learn more about restic.

Well, I use Linux (EndeavourOS), installed restic, created my first backup, ran consistency checks, etc.

I just mounted a drive using restic -r /path/to/my/repo mount /mount/point and don’t understood very well how does somethings works.

I mean, I backed up 160 GB of data, more or less, and inside the new mount I have now around 1 TB of files and folders (currently I have only two snapshots created).

Inside this mount, there are a multitude of folders, like hosts, ids and snapshots. Well, I don’t understood this very well, and, of course, I am probably misunderstanding somethings and/or missing something.

I would love to receive some help, if possible. :slight_smile:

Thanks in advance.

let’s say you have 100GB dataset and only 1GB file is changing before you run restic snapshot (backup).

Forgetting compression your first snapshot will take 100GB repo size but second one only adds 1GB (only changed data). 99GB will be shared between two snapshots. Repo size will be 101GB

Then 1GB changes again and you take another restic snapshot - now your repo contains 102GB of data.

But when mounted it shows 3 snapshots - 100GB each, 300GB total. As this is how much space you would need when you would like to restore all of them.

This is only different way to show the same data. “Snapshots” show all snapshots. “Hosts” - snapshots for specific hosts you run restic backup etc.

You might want to check out - a lot of the concepts are explained there and it’s very useful. The hosts, ids and snapshots are just three different paths toward your data. You can backup different hosts and folders into one repo and then find them via these paths.

Hi again,

Thank you, guys. I understood. My bad.

About the latest, it is automatically added when we mount, for hosts and snapshots. Right?

@Reiner_Sanders That’s correct, it always exists as a quick reference to the latest snapshot ID.

Great, thank you.

After four years of using restic, I can say investing a little time in learning about it is very much worth it. It’s an awesome piece of software!

1 Like

Sure. I am really liking it in just a few hours working with.

Will start browsing its documentation.