Inclusion and exclusion of individual files apparently works (CLI)

Asked by Naël

Everyone knows that you can't select individual files for inclusion or exclusion through Déjà Dup's GUI, but forcing them into the include-list and exclude-list GConf keys apparently works.

Michael what is your expert opinion? Is that a happy side effect dangerous to be relied on, or an undocumented feature that is stable enough to be used?

For instance, with the following setup:

  d1/f11
  d1/f12
  d1/d13/f131

  d2/f21
  d2/f22
  d2/d23/f231

  include-list ['/home/nael/d1',
                '/home/nael/d2/f21',
                '/home/nael/d2/d23/f231']
  exclude-list ['/home/nael/d1/f12',
                '/home/nael/d1/d13/f131']

I expected the following to happen:

  d1/f11 included
  d1/f12 excluded
  d1/d13/f131 excluded

  d2/f21 included
  d2/f22 excluded
  d2/d23/f231 included

Behold, running 'DEJA_DUP_DEBUG=1 deja-dup --backup > deja-dup.log' shows an adequately-constructed duplicity call (as far as I can tell) and the requested result:

  ... --include=/home/nael/d2/d23/f231
  --include=/home/nael/d2/f21 --exclude=/home/nael/d1/d13/f131
  --exclude=/home/nael/d1/f12 --include=/home/nael/d1 ...

  A home/nael/d1
  A home/nael/d1/d13
  A home/nael/d1/f11
  A home/nael/d2
  A home/nael/d2/d23
  A home/nael/d2/d23/f231
  A home/nael/d2/f21

Restoring these individual files from the command line and Nautilus also works as expected, from what I could see.

If this is a stable feature, even if not a GUI one, it could be useful for, say, backing up the files that store Firefox's bookmarks and saved passwords, without backing up the whole (and ever-changing) profile directory.

(Déjà Dup 30.0 w/ duplicity 0.6.23 on Ubuntu 14.04 LTS)

Question information

Language:
English Edit question
Status:
Expired
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.