[clue-tech] Detecting media change
David L. Willson
DLWillson at TheGeek.NU
Fri May 2 13:10:28 MDT 2008
> > blkid /dev/sda1 | sed -e 's/^.*UUID="\([^"]*\)".*$/\1/'
>
> If you really like sed, this may be a little cleaner:
>
> sed -e 's/^.*UUID="//' -e 's/".*$//'
>
> but
>
> blkid -o value /dev/sda1 | head -1
>
> works for me.
Very nice, Dave. You pimped Bacula; have you compared it to BackupPC? That's the only
one that sorta tempts me to leave behind my growing pile of steaming script.
David L. Willson
Trainer/Engineer/Consultant
MCT, MCSE, Linux+
(720) 333-LANS
More information about the clue-tech
mailing list