echo "LIST_OF_GROUPS=\"my-group\"; export LIST_OF_GROUPS" >> /etc/rancid.conf
sudo -u rancid -i
git config --global user.email "[email protected]"
git config --global user.name "Some name"
echo -e "add method * {ssh}\nadd user * {my-username}\nadd password * {my-ssh-pass} {my-enable-pass}" > .cloginrc
chmod 0600 .cloginrc
rancid-cvs
# run config differ hourly
1 * * * * /usr/bin/docker start [rancid-container]
# clean out config differ logs
50 23 * * * /usr/bin/docker exec [rancid-container] /usr/bin/find /var/lib/rancid/logs -type f -mtime +2 -exec rm {} \;
ssh-keygen -t rsa
# copy and paste the contents of ~/.ssh/id_rsa.pub to remote git-repo
cd my-group/
git remote add [name] [url]
git push -u [remote name] master