#!/bin/bash
# 1. create a sub-directory within a specified (backup) directory, in the format MMDDYYYY
DIR=$(date +%m%d%y)
# 2. copy the config files (can be various paths) to this newly created directory
for F in $FILES # here you need to specify which files...
do
cp $F $DIR
done
# 3. delete directory which is more than 30 days old.
# if you have GNU date
rm -r $(date -d "30 days ago" +%m%d%y)
# else you'll have to do some specific date calculation