The other day I was looking for a backup solution for two laptops. While I was unable to get the exact results I was looking for I did create a nice bash script that detects the network, and if on my local network it will mount the share from my Airport Extreme and then rsync the data over. I am sure there is plenty of room for improvement on this script, but it works quite well.
bash
TransNotifo
I use Transmission to download torrents on my headless Linux box. I was tired of always having to remote into the machine via FreeNX, SSH or web interface to see if downloads had completed. I have been using Notifo for sometime to monitor the lighting on my snakes aquarium and decided that this would be a good use of Notifo once again. So after a bit of research I came across a bash script example that allowed Transmission to log to a file upon completion of downloads. I then came across a script that would let you send alerts to Notifo from the command line …. So I combined them and was left with the following.
Auto reconnect to Screen session
I came across this bit of info which makes life easier. Just add this to your .bash_profile and when you SSH to the server it will auto attach to your screen session if you have one running. if [[ $TERM != 'screen' ]] ; then if [[ `screen -list | grep -v "No" | awk … Read More
Simple Bash Backup v.01
I needed a simple backup script to rsync some files from one folder to a mounted backup drive. After poking around on the net I found a few different scripts that I hacked together to make this script. I plan on updating it to send either Growl notices to my Powerbook or send some popups … Read More