#!/bin/bash
backupdir=/home/config_files_backup
time=_` date +%Y_%m_%d_%H_%M_%S `
tar cfz $backupdir/config_$time.tar.gz /home/config_files/
find $backupdir -name $db_name"*.tar.gz" -type f -mtime +7  -exec rm -rf {} \; > /dev/null 2>&1
