Basiclly, you add a script that will execute the backup procedure on a daily basis. This can be a shell, bash or a perl script, which is placed in the system's cron directory, or any directory you specify in crontab using the 'crontab -e' command. At least that's how it's done in Slack. I'm not familiar with how it's done in RH...................Read the manpages for crontab (man crontab), man crond, man run-parts, to get an idea of how cron jobs are run. Also run 'crontab -e', which is where the cron jobs are placed. It may already have some entries which you can look at. For example, heres what my crontab looks like:
# If you don't want the output of a cron job mailed to you, you have to direct
# any output to /dev/null. We'll do this here since these jobs should run
# properly on a newly installed system, but if they don't the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
# Run the hourly, daily, weekly, and monthly cron jobs.
# Jobs that need different timing may be entered into the crontab as before,
# but most really don't need greater granularity than this. If the exact
# times of the hourly, daily, weekly, and monthly cron jobs do not suit your
# needs, feel free to adjust them.
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
# Run twice daily cron jobs at 4:50 and 16:50 (4:50pm) every day:
50 4,16 * * * /usr/bin/run-parts /etc/cron.twicedaily 1> /dev/null
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
# Run weekly cron jobs at 4:30 on the first day of the week:
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
# Run monthly cron jobs at 4:20 on the first day of the month:
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null
Note: The twice daily entry is one I added, which runs every 12 hours, while the rest are the defaults that come with Slack. RedHat might have something a little different, but this should give you an idea of what to expect. And the default editor for 'crontab -e' is vi. If you want to use a different editor, then you'll need to add a VISUAL variable in your login script, ~/.bashrc (or whatever you're using). For example, I prefer pico, so I added this at the bottom of ~/.bashrc:
VISUAL = 'pico -w'
You will also need to know something about shell scripting. Go to this thread
which shows you where to go to get started on bash scripting...........................You can find some ready-made backup scripts that might suit your purposes. Go to SourceForge's search page
and enter 'backup script' (no quotes). Make sure there's a check mark next to "Require All Words". This will give you quite a few choices. If you choose a perl program, you'll need to know enough about perl so you can edit it for your particular needs.
This should get you started. Hope this helps.
PS: You can also find a couple of backup scripts from GNU's Free Software Directory: Backup