Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Time Machine: Mount backup disk on demand' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Time Machine: Mount backup disk on demand
Authored by: Alrescha on Jul 22, '10 06:05:22AM

infinite variety:

#!/bin/sh
grep -q "Backup completed successfully." /var/log/system.log
if [ $? = 0 ]
then
exit 0
fi
test -d /Volumes/Time\ Machine
if [ $? = 1 ]
then
/usr/sbin/diskutil mount time-machine-uuid
fi
grep -q "Backup completed successfully." /var/log/system.log
while [ $? = 1 ]
do
sleep 300
grep -q "Backup completed successfully." /var/log/system.log
done
/usr/sbin/diskutil unmount time-machine-uuid



[ Reply to This | # ]