Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Okay guys, I'm far from pro, so I guess y'all can make fun of me if you want! But I've been working on a script today to back up drive 1 to drive 2, checking to make sure both disks are mount properly first:
if mount | grep $(blkid -U 'UUID1') | grep '/mnt/disk1' > /dev/null 2>&1 ; then
if mount | grep $(blkid -U 'UUID2') | grep '/mnt/disk2' > /dev/null 2>&1 ;
then
rsync -aAHXxv --delete /mnt/disk1/ /mnt/disk2/;
echo "sync complete"
else
echo "one of your filesystems is not mounted"
exit
fi
fi
It works fine, but doesn't display any message when "disk1" is offline. I'm not exactly sure what's happening.
Thanks very much guys! Got it working satisfactorily. More importantly, learned a bit more about Bash.
But for some reason I couldn't get the first suggestion working. Odd. Second one did work though.