Exclude Snap .cache from Dejadup backups

Bug #1744584 reported by J. Snow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Fix Released
Wishlist
Unassigned
Snappy
Invalid
Undecided
Unassigned
deja-dup (Ubuntu)
Fix Released
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)
Changed in deja-dup:
status: New → Triaged
importance: Undecided → Wishlist
Changed in deja-dup (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
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?)

Revision history for this message
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.

Revision history for this message
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)
Changed in deja-dup:
status: Triaged → Fix Committed
Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Vej (vej) wrote :

This has been released upstream with version 38.0

Changed in deja-dup:
status: Fix Committed → Fix Released
Michael Terry (mterry)
Changed in deja-dup (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'm closing the snapd side of the issue. Thank you for improving deja-dup everyone!

Changed in snappy:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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