Re: [Tracker] Prevent removed files from being removed from the db



On Mon, 2010-05-17 at 10:07 -0400, Nikolaus Rath wrote:
Hello,

Hello,

I want to store lots of (valuable) additional metadata about my files in
the tracker database.

However, I am a little bit concerned about the safety of this
information. Apparently, tracker deletes everything that is associated
with a given file if it can't find the file itself.

If the file is indeed gone, it most likely makes sense to do that.

Is there a way to make tracker keep all the information in the database,
even if the file temporarily disappears?

We do something like this for mounted volumes. We have a
tracker:available flag that we use for exactly this case. If you notice,
the tracker-search command allows you to show all results or just those
available and exploits this feature.

I'm worried about network failures, disconnected external drives,
accidental renames of the directory etc.

Drives should be covered. Network failures on the other hand are an
interesting scenario. If this doesn't work, we should aim to fix that I
think.

-- 
Regards,
Martyn




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]