#! /bin/bash # This is the default set of files to be archived into the care package # Add to this list as needed, these are relative to ~ files=( .bash_profile .bashrc .cabal/config .darcs/defaults .vimrc ) archive="carepkg-$HOSTNAME-$USER.tar" cd $HOME rm -v $archive tar cvf $archive ${files[*]} $* echo echo "File $HOME/$archive created" echo echo "Add more files by running this script again:" echo " $ mkcarepkg FILE1 FILE2 ..." echo echo "Or add to existing tar like this:" echo " $ tar uvf $archive FILE..." echo echo "Some additional files that may be helpful:" echo " .gitconfig" echo " .profile" echo " .ssh/id_rsa.pub"