[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.7 and 1.8

version 1.7, 2009/06/16 23:55:55 version 1.8, 2009/06/16 23:58:27
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: backup_config,v 1.6 2009/05/21 22:41:08 andrew Exp $  # $RedRiver: backup_config,v 1.7 2009/06/16 22:55:55 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
         exit 255          exit 255
 fi  fi
   
 FILE=`hostname -s`-`date +%Y-%m-%d`  FILE=/tmp/`hostname -s`-`date +%Y-%m-%d`
 local _maxhomesize=20480  local _maxhomesize=20480
   
 local _list="/root \  local _list="/root \
Line 27 
Line 27 
         echo Not backing up /home, too large!          echo Not backing up /home, too large!
 fi  fi
   
 tar czf /tmp/${FILE}.tar.gz $_list  tar czf ${FILE}.tar.gz $_list
   
 echo backed up $_list  echo backed up $_list
 echo "\tto /etc/$FILE"  echo "\tto $FILE"

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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