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 root@x.hacksstuff.com:$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
Advertisements
Basic rsync Script For My Amazon Instances

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s