Tag: bash

SSH known hosts verification failure one liner

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! Those who regularly build and rebuild machines or virtual machines on a dhcp network will probably be faced with this quite often, this is due to the known fingerprint for the previous host being different to a new one which has aquired the same IP address. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!… Read more →

Hourly Backup Script for Email

So I was working on a script a while ago to backup all my email on my Linux box. I put together a fairly simple bash script to delve into home directories and pick out the Maildir and back it up. Great! DRIVE=”/dev/sdb1″ HOME=”/home/” LIST=”/tmp/backlist_$$.txt” # mount $DRIVE /backup set $(date) for DIR in `find /home/ -name “Maildir” -print`; do… Read more →