On Friday, January 15, 2016 2:05:39 PM CET Roman Mamedov wrote: > On Fri, 15 Jan 2016 09:33:14 +0100 > > Wolfgang Mader <Wolfgang_Mader@xxxxxxxxxxxxx> wrote: > > I have a btrfs raid 10 from which I take hourly snapshots using snapper. > > Now, I wonder, if there is a way to delete a file together with all its > > occurrences in all snapshots. > > > > My use case is, that the file I want to delete is large, and I want to > > free its space on disk. Thus, I have to get rid of its "live" version but > > also of all references to it in snapshots. > > E.g. if your file is at /path/to/file.dat, and your snapshot structure is > /snapshots/YYYY-MM-DD@time/, you would simply do: > > rm /snapshots/*/path/to/file.dat > > In fact this is what I often do with my timed snapshots when deleting some > files and wanting to recover free space immediately, not waiting for all > their snapshots to expire and get deleted by the usual time-based deletion > rules. > > If your snapshots are read-only it becomes more complex, but still doable. Neat idea. Thx.
Attachment:
signature.asc
Description: This is a digitally signed message part.
