[Scottish] How to avoid symlinks spiralling out of control?

David Marsh's list-reading hat scottish at mailman.lug.org.uk
Tue Mar 18 15:41:01 2003

Hmm, I thought I'd be clever and try to backup my critical (but not
secret) config files onto my webspace.

I use sitecopy to update my website, which is nice and easy and just
(usually) does the right thing for uploading only files which have
changed locally.

So, I figured, I'll create a directory to store the parts of /etc that I
want to have backups of. And then I'll create symlinks for the parts of
/etc that I want to backup, eg  ln -s /etc/apache .  which gives me a
symlink to the directory where the apache config files live.

Unfortunately, there's a problem here:

Within /etc/apache/, there is a symlink
conf -> ./
and when sitecopy encounters this, it just keeps looping around here,
creating nested 'conf' directories for some reason.

Does anybody know of any way I can get around this, or should I report
this as a potential bug in sitecopy?

Thanks for any advice,


David Marsh, Glasgow, Scotland, N Europe. | http://web.viewport.co.uk/
<email valid @time of writing>, but reply to list preferred, thanks.