Expansion with ~ doesn't work in Obnam config files

published Feb 05, 2016 11:34   by admin ( last modified Feb 05, 2016 11:34 )

Backups with Obnam

Expansion with ~ doesn't work in config files. On the Backups with Obnam page, you can read:

As an example, your first backup might have the following configuration:

obnam backup -r /media/backups/tomjon-repo ~ \
    --exclude ~/Downloads

...but that doesn't work in a config file:

exclude = ~/Downloads

Not working! Reason I guess: There is no shell to expand the ~ character. So you'll have to write:

exclude = /full/path/to/Downloads