Q:

How can I automate the process of copying files from one folder to another in Centos

I have a statistical application which runs every minute and creates charts accordingly.
In order to make these charts available to other users, I need to copy the whole folder containing the charts and paste it to a shared folder where other users can see the contents.
How can I automate this process so that e.g each 5 minutes the files and folders are updated?   

A:

This sounds like something which could perhaps be perfectly solved with rsync. In its simplest form it can be called like this
rsync sourceFolder destinationFolder

Called in a crontab every 5 minute:
*/5 * * * * /usr/bin/rsync sourceFolder destinationFolder

For options, permissions, exlude of special files or directories see man rsync.

