[Cc]ache* should not be in default exclusion list

Bug #1081775 reported by Richard Ayotte
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Back In Time
Fix Released
Medium
Germar

Bug Description

I just had a drive failure got bitten by this one. A few of the projects that I was working on such as Drupal and Dojo Toolkit have files named cache.js and cache.inc and of course they were excluded.

Maybe a less greedy or more specific pattern could be used instead.

Tags: data loss
tags: added: loss
description: updated
Revision history for this message
Tom Metro (tmetro+ubuntu) wrote :

> files named cache.js and cache.inc...were excluded.

How about a pattern that only matched directories, instead of files?

Revision history for this message
Richard Ayotte (rich-ayotte) wrote :

Directories wouldn't have save me either. Here's what Dojo looks like.

./library/dojo/tests/cache
./library/dojo/tests/cache/object.html
./library/dojo/tests/cache/regular.html
./library/dojo/tests/cache/sanitized.html

A more conservative approach is probably better. Maybe we could give the users the option with a warning or we can start collect a list of more precise paths that we absolutely know are cache/tmp files?

Revision history for this message
Germar (germar) wrote :

That list could get quite long. But lets give it a try. Here is what I could imagine right now. Please add if you know more locations

.mozilla/firefox/*/Cache
.thunderbird/*/Cache
.cache
.opera/cache

Regards,
Germar

Changed in backintime:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Richard Ayotte (rich-ayotte) wrote :

That's a good start. Could the value of the environment variable $XDG_CACHE_HOME be used somehow? It's part of the XDG Base Directory Specification. http://standards.freedesktop.org/basedir-spec/latest/

Revision history for this message
Germar (germar) wrote :

Neither Debian nor Ubuntu make use of XDG_CACHE_HOME. Would've been too easy ;)

Revision history for this message
Richard Ayotte (rich-ayotte) wrote :

You're right. I just had a look at /etc/xdg/user-dirs.defaults (on 12.10) and it doesn't contain any XDG variables. Maybe I should file another bug that.

I'd be happy with the directories that you listed for now.

Germar (germar)
Changed in backintime:
milestone: none → 1.1.0
assignee: nobody → Germar (germar)
Germar (germar)
Changed in backintime:
status: Confirmed → Fix Committed
Revision history for this message
Sparhawk (sparhawkthesecond) wrote :

FWIW the Firefox cache is now at ~/.cache/mozilla/firefox for me.

Revision history for this message
Germar (germar) wrote :

This is the new default exclude in 1.1
[ '.gvfs', '.cache/*', '.thumbnails*', '[Tt]rash*', \
'*.backup*', '*~', '.dropbox*', '/proc/*', '/sys/*', \
'/dev/*', '/run/*', '/etc/mtab', \
'/var/cache/apt/archives/*.deb', 'lost+found/*', \
'/tmp/*', '/var/tmp/*', '/var/backups/*', '.Private' ]

Germar (germar)
Changed in backintime:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.