including files in a symlink directory when backing up with duplicity
Posted
by
Rob
on Super User
See other posts from Super User
or by Rob
Published on 2012-10-04T14:49:54Z
Indexed on
2012/10/04
15:42 UTC
Read the original article
Hit count: 240
I'm backing up using Duplicity, great tool. I'm unable to include files in the backup that are within a directory that is a symlink.
Using the following:
duplicity <dup args> --include /var/www/**/current --exclude '**'
duplicity will only backup the symlink I've tried:
duplicity <dup args> --include /var/www/**/current/* --exclude '**'
# and
duplicity <dup args> --include /var/www/**/current/** --exclude '**'
Not even then symlink is backed up.
the "current" directory links to directory like: /var/www/host.com/de9f2c7fd25e1b3afad3e85a0bd17d9b100db4b3
The files contains a few static html & css files. I want those files to be backed up, regardless of which sha'd directory "current" points to.
Any help appreciated.
© Super User or respective owner