Hi,
Anyone managing Mac clients being backed up by Retrospect? I need a Extension Attribute to report the last date a client was backed up.
I found a logfile /private/var/log/retroclient.log with the backup date and time.
Here is an example of the log file entry;
1450142118: SopsSetBackupDates: last:2015-12-14@17:0 next:2015-12-15@17:0
I made an attempt at the following script but didn't quite get the results I wanted. The result was, result>last:2015-12-14@17:0</result I just want the date, 2015-12-14.
#!/bin/sh
if [ -f /private/var/log/retroclient.log ];then
lastBackupTime=`cat /private/var/log/retroclient.log | grep -w "SopsSetBackupDates: last" | awk '{print $3}'`
echo "<result>$lastBackupTime</result>"
else
echo "<result></result>"
fi