#
# Backup script
#
# Use this script at your own risk !!!
#
# author: zeekox
# license: free
#
if [ `whoami` != 'root' ]
then
echo ''
echo 'You must be root to execute this script.'
exit
fi
cd ~/recovery/
dir=`date +%d%b%y`
mkdir $dir
cd $dir
echo 'Make sure debconf-utils is installed...'
apt-get install debconf-utils
echo 'OK'
echo 'Optain package selections...'
dpkg --get-selections > pkgSel
echo 'OK'
echo 'Optain debconf selections...'
debconf-get-selections > debconfSel
echo 'OK'
echo 'Copying source listes...'
cp -r /etc/apt/sources.list* .
echo 'OK'
echo ''
echo 'Backup completed in '`pwd`
0 comments:
Post a Comment