deajan / backup-bench

Quick and dirty backup tool benchmark with reproducible results
BSD 3-Clause "New" or "Revised" License
112 stars 10 forks source link

Hard links and sparse files #13

Closed andrewchambers closed 1 year ago

andrewchambers commented 1 year ago

Bupstash supports these, I don't know about the other tools.

deajan commented 1 year ago

I need to understand before adding this to the comparaison table:

andrewchambers commented 1 year ago

I think you are confusing hardlinks and symlinks. On linux you create a hardlink with ln and a symlink with ln -s. A hard link looks as if they are a normal file but actually both point to the same inode on the filesystem.

I mainly mean if you backup a filesystem that has hardlinks and sparse files does the backup tool preserve and restore them or discard that information. It can be quite important this information is not lost. As an example if sparse file information is not restored properly you can run out of disk space when trying to restore files that previously fit on a disk.

deajan commented 1 year ago

Indeed, read too fast for the hardlinks. I've updated the comparaison with your requests. Thanks.