Answer the question
In order to leave comments, you need to log in
How to delete a file with all hardlinks?
There is a backup (from deleting files) on snapshots made by hardlinks to backed up files. How to delete an unnecessary file at once in all snapshots, that is, such a deletion that will kill all the hardlinks to the file at once?
Answer the question
In order to leave comments, you need to log in
Already defeated this problem. Got out easier. Wrote a script that does:
rm -fv "/shares/snapshots/*/$1"
rm -fv "/shares/user/$1"
Run, it dumps on the screen a list of everything that has been deleted. Or nothing :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question