Exclude Snap .cache from Dejadup backups

Bug #1744584 reported by J. Snow on 2018-01-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Wishlist
Unassigned
Snappy
Undecided
Unassigned
deja-dup (Ubuntu)
Wishlist
Unassigned

Bug Description

The official Backup solution offered by Ubuntu does not support advanced whitelisting/blacklisting of directories. With the introduction of snaps, the cache of the snap apps is stored in ~/snaps/APP-NAME/VERSION/.cache. Unfortunately this means that Deja dup can't be configured to exclude these directories from backups.

Since 2009, there have been several requests from the community to add support of advanced include/exclude support in Dejadup but there is no progress. Do you have any plans to provide minimum support for excluding specific snap folders such as .cache?

Vej (vej) on 2018-01-22
Changed in deja-dup:
status: New → Triaged
importance: Undecided → Wishlist
Changed in deja-dup (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Michael Terry (mterry) wrote :

I think it would be reasonable to add an Always-on exclude of ~/snap/*/*/.cache maybe. Doesn’t help for snaps that put their cache somewhere else... but that will get the majority of good actors.

I don’t know what canonical’s plan for a program like deja dup to programmatically determine which snap folders are worth backing up / which are not. But we could do this hack until they have something for us to use. (They don’t already right?)

Michael Vogt (mvo) wrote :

The ~/snap/*/*/ structure is currently hardcoded and I'm not aware that any package changes this. So the idea of always excluding ~/snap/*/*/.cache is sensible.

Michael Terry (mterry) wrote :

mvo, that’s good. But I’m also leery of assuming what apps do with their own space. Not everyone is going to use .cache. But I’m sure that gets the majority.

Michael Terry (mterry) on 2018-01-24
Changed in deja-dup:
status: Triaged → Fix Committed
Michael Terry (mterry) wrote :

OK, I've committed a patch in upstream master that excludes ~/snap/*/*/.cache and uploaded a cherry-picked patch to bionic.

J. Snow (jon.snow) wrote :

Michael thank you very much. This is so awesome. It will simplify significantly using snaps as currently we need to pay careful look whenever they are updated to exclude them from Deja Dup.

Thanks for writing this awesome software.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions