tuxlover/etckeeper-ng — Issue #2: Exluding a file by describing the absolute path does not work with symbolic links
Author: tuxlover
Created: 2012-02-01 17:57:00+00:00
State: open

When using etckeeper -b or -f we are using the -l option with rsync to sync.
Files which are basically symbolic links getting stored as symbolic links which pointing exactly to there sources on a different file system. Therefore the git add failed to due the aspect not storing information over file system boundaries:

Workaround: using the -H option for storing those linked files as files as long the restore option is not implemented.

Fix: Write a function, which finds symbolic links in the commit and exchanges them for their targets. When restoring we must not overwrite these files when a file is not in /etc or at least ask whether this is wanted. Also this function must appear in the check and backup functions.