version 1.11, 2009/11/17 16:48:14 |
version 1.12, 2009/12/10 07:38:59 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: backup_config,v 1.10 2009/11/05 23:26:34 andrew Exp $ |
# $RedRiver: backup_config,v 1.11 2009/11/17 16:48:14 andrew Exp $ |
|
|
if [ `id -u` -ne 0 ]; then |
if [ `id -u` -ne 0 ]; then |
echo You should run this as root! >&2 |
echo You should run this as root! >&2 |
|
|
/var/backups \ |
/var/backups \ |
/var/cron \ |
/var/cron \ |
/var/www/conf" |
/var/www/conf" |
|
|
|
[ -e /var/www/etc ] && _list="${_list} /var/www/etc" |
|
|
local _mcfile=`grep '^### .*\.mc' /etc/mail/sendmail.cf | cut -d ' ' -f 2` |
local _mcfile=`grep '^### .*\.mc' /etc/mail/sendmail.cf | cut -d ' ' -f 2` |
if [ X"${_mcfile}" != X"" ]; then |
if [ X"${_mcfile}" != X"" ]; then |