[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.11

version 1.10, 2009/11/05 23:26:34 version 1.11, 2009/11/17 16:48:14
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.10 2009/11/05 23:26:34 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 27 
Line 27 
         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.11

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