[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.5 and 1.6

version 1.5, 2009/05/21 23:25:39 version 1.6, 2009/05/21 23:41:08
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: backup_config,v 1.4 2009/05/21 22:05:06 andrew Exp $  # $RedRiver: backup_config,v 1.5 2009/05/21 22:25:39 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 22 
Line 22 
 local _homesize=`du -ks /home/ | awk '{print $1}'`  local _homesize=`du -ks /home/ | awk '{print $1}'`
 if [ $_homesize -lt $_maxhomesize ]; then  if [ $_homesize -lt $_maxhomesize ]; then
         _list="${_list} /home/"          _list="${_list} /home/"
   else
           echo Not backing up /home, too large!
 fi  fi
   
 tar czvf /tmp/${FILE}.tar.gz $_list  tar czf /tmp/${FILE}.tar.gz $_list
   
   echo backed up $_list
   echo "\tto /etc/$FILE"

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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