geek rescue kit Code
Brought to you by:
ctaf
#!/bin/sh
## ct-save-mineconf for ctafconf in /home/ctaf/.ctafconf
##
## Made by GESTES Cedric
## Login <ctaf@epita.fr>
##
## Started on Tue Oct 4 03:04:18 2005 GESTES Cedric
## Last update Tue Oct 4 03:42:00 2005 GESTES Cedric
##
#CTAFCONF
cd ~
filetotar=
for i in `ls ~/.ctafconf/share/mine/` ; do
i=.$i
if [ x$i = xuser-profile.mine ] ; then
continue
fi
if [ -f $i ] ; then
filetotar="$filetotar $i"
fi
done
if [ -f ~/.ctafconf/user-profile.mine ]; then
i=".ctafconf/user-profile.mine"
filetotar="$filetotar $i"
fi
tar --exclude ".svn" --exclude "user-profile" -cvzf ct-mineconf-`id -u -n`-`uname -n`-`date "+%Y%m%d"`.tgz -- $filetotar
echo "tarball of the ctafconf: " ~/ct-mineconf-`id -u -n`-`uname -n`-`date "+%Y%m%d"`.tgz