Copies selected configs to Git or Hg repository. It is better than track entire /etc with tons of garbage.
echo '
/boot/grub/grub.cfg
/etc/apt/sources.list.d/
/etc/fstab
/etc/group
/etc/passwd
/etc/shadow
/etc/rc.local
/root/.ssh/
' > myconfigs.lst
git init myconfigs
configs2git myconfigs.lst myconfigs/
When script is named as configs2hg, it tries to use Mercurial instead of Git.
- support wildcards
- helpers for OpenVZ and LXC