How to symlink folders and exclude certain files

Posted by Jarrod White on Server Fault See other posts from Server Fault or by Jarrod White
Published on 2010-07-30T02:07:30Z Indexed on 2011/01/06 14:56 UTC
Read the original article Hit count: 428

Filed under:
|
|
|

Hey Guys,

I'm not a server guru (unfortunately) but have a decent knowledge of linux & bsd. I'm trying to symlink multiple instances of HLDS (game server) but need to exclude certain folders & config files to achieve this properly. I need to do it this way as HLDS loads many mods automatically, and putting an exception to disable the mods doesnt work for all of them.

so basically i want:

/home/user/hlds-install (the base install)
/home/user/server1
/home/user/server2
etc...

and then be able to manually put any configs/mods ive excluded into the server dir's so that each server can be configured individually.

Can anyone tell me how to do this, perhaps some sort of bash script so that I can just change the targets to run it each time i want to create a new one. I have quite a number to make so doing the whole thing manually for each one definately isn't an option and im all for working smarter, not harder!

Thanks :)

© Server Fault or respective owner

Related posts about linux

Related posts about symlink