Basic rsync Script For My Amazon Instances

sync.sh

#!/bin/bash
# mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
killall -9 ssh-agent
rm -fv ~/.bash_history /home/*/.bash_history
eval `ssh-agent`
ssh-add
for f in /root/ /etc/rc.local /etc/ssh/ /etc/freeradius/ /home/ ; do rsync -avz --delete $f [email protected]:$f ; done
killall -9 ssh-agent

rc.local [part]

let r="$RANDOM % 10"
python /root/opbot.py irc.choopa.net stooop$r thepwd stoops &
python /root/floobot.py irc.choopa.net stoofloo$r thepwd stoops &

irc bot op command

/msg stooop thepwd mode #stoops +o stoofloo

Leave a comment