Contents of multiple directories in one
I have several harddisks with the same directory structure, for example:
/hda1/documents/addresses.txt
/hda1/documents/telephone.txt
/hda1/work/schedule.dat
/hdb3/documents/emailaddresses.txt
/hdb3/work/projects.txt
I want one directory which "contains" this information:
/share/documents/addresses.txt
/share/documents/emailaddresses.txt
/share/documents/telephone.txt
/share/work/projects.txt
/share/work/schedule.dat
I fixed this writing a script which does a find in /hda1 and /hdb2 and creates the correct symlinks in /share. This works ok, but when I want to use this directory for some of the ftp users, it isn accesible because /share is outside the document root (which is /home).
To (try to) fix this, I used mount --bind. This shows the directory share, but the contents aren visible, because the original /hda1 and /hdb3 are outside the document root.
Is there a way to solve the problem? I don't want to copy the files either, since it's quite some data. It isn't neccesary for ftp users to write to this shared directory, just reading is ok.
Last edited by playroll; 11-17-2003 at 01:33 PM.
|