You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also haven’t considered hardlinks so far, so their behaviour is not well-defined.
Hardlinks are quite tricky, because their behaviour depends on how the snapshots were created, or whether you compare two snapshots against each other, or whether you compare one snapshot against the original directory tree.
If you do cp -R for creating a snapshot, then all hardlinks from the original directory tree are created as individual files in the snapshot.
If you do rsync -r --hard-links for creating a snapshot, then all hardlinks from the original directory tree are cloned (as hardlinks) in the snapshot.
The other issue is that it’s more complex to determine the “redundant” hardlinks within the same snapshot in the first place.
Not sure yet, what the best solution is here. I’m also not sure how common this problem actually is, or whether the additional complexity of solving it is worth the benefit.
The text was updated successfully, but these errors were encountered:
jotaen
changed the title
Look into hardlink/symlink handling
Define (and implement) behaviour for hardlinks
Jan 23, 2024
jotaen
changed the title
Define (and implement) behaviour for hardlinks
Define and implement behaviour for hardlinks
Jan 23, 2024
I also haven’t considered hardlinks so far, so their behaviour is not well-defined.
Hardlinks are quite tricky, because their behaviour depends on how the snapshots were created, or whether you compare two snapshots against each other, or whether you compare one snapshot against the original directory tree.
cp -R
for creating a snapshot, then all hardlinks from the original directory tree are created as individual files in the snapshot.rsync -r --hard-links
for creating a snapshot, then all hardlinks from the original directory tree are cloned (as hardlinks) in the snapshot.The other issue is that it’s more complex to determine the “redundant” hardlinks within the same snapshot in the first place.
Not sure yet, what the best solution is here. I’m also not sure how common this problem actually is, or whether the additional complexity of solving it is worth the benefit.
The text was updated successfully, but these errors were encountered: