H
H
Harbid Abu Marhamedoff2015-11-02 08:34:38
linux
Harbid Abu Marhamedoff, 2015-11-02 08:34:38

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

2 answer(s)
H
Harbid Abu Marhamedoff, 2015-11-02
@harbid

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 :)

C
Cole, 2015-11-02
@Cole

How are you with English?
linuxcommando.blogspot.nl/2008/09/how-to-find-and-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question