I'm not a (web)server expert, so I need a little help with the following question. I realy couldn't find a answer via Google, probably because I'm using the wrong keywords.
I would like to know if it's possible to create a file somewhere on the server that I could use/call to execute multiple commands and which I can 'feed' some extra parameters like source, destination and the group/owner of the files on the destination.
What I would like to create is a file that duplicates the content of a folder, places it in another folder and than set the group/owner of the files/folders and probably also chmod some folders within the destination.
I know how to use this command apart from each other, but is it possible to group all of this commands in a single file and execute this file with some parameters?
The server is running on CentOS 6.0 (64-bit)