[BACK]Return to backup_config CVS log [TXT][DIR] Up to [local] / openbsd / backup_config

Diff for /openbsd/backup_config/backup_config between version 1.10 and 1.12

version 1.10, 2009/11/05 23:26:34 version 1.12, 2009/12/10 07:38:59
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: backup_config,v 1.9 2009/10/26 19:40:33 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
Line 15 
Line 15 
   /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
   _list="${_list} /usr/share/sendmail/cf/${_mcfile}"    _list="${_list} /usr/share/sendmail/cf/${_mcfile}"
Line 27 
Line 29 
         echo Not backing up /home, too large!          echo Not backing up /home, too large!
 fi  fi
   
 tar czf ${FILE} $_list  find $_list -type f -or -type l | sed -e 's/^\///' | tar -czf ${FILE} -C / -I -
   
 echo backed up $_list to  echo backed up $_list to
 echo "\t$FILE"  echo "\t$FILE"

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>