version 1.9, 2009/10/26 20:40:33 |
version 1.11, 2009/11/17 16:48:14 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: backup_config,v 1.8 2009/06/16 22:58:27 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 |
|
|
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 |
echo backed up $_list to |
echo "\tto $FILE" |
echo "\t$FILE" |