cp -s question
I was playing around and decided I really like pMachine; I wanted to give a few friends their own blogs with it. (As opposed to making one communal blog.)I wanted to conserve disk space, though. Realizing that only the database content would be different, my first instinct was to just symlink the directories -- /pmachine would have the exact same content as /blog2. Right as I was about to do this, I realized it wouldn't work -- the config files for each would need to be different so that they use separate database tables.
I remembered that I had noticed cp's -s option, which creates symbolic links rather than copies. The problem is that it doesn't do subdirectories, even if you pass it the -r option. Is there an easy way to make a directory (with several levels of subdirectories included) contain all its files symlinked to another one? (Then I can go in and make the files I need to be different plain files, so they're the only files taking up space.)
I'm sure this can't be that uncommon of a goal; how do I go about getting it to work right?