[go: up one dir, main page]

Menu

[r2]: / bin / ct-save-mine  Maximize  Restore  History

Download this file

32 lines (27 with data), 768 Bytes

#!/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