Last Backup TimeMachine

Lars_Leppert
New Contributor

Hello, i have problems with the correct output from the extension attribute Time Machine - Last Backup Completed. The extension Attribute is from jamfnation and edited as described here https://jamfnation.jamfsoftware.com/discussion.html?id=13289. I get an date in the inventory, but i think this is not the last backup comleted but it seems like the very first backup on the backupshare from the client. It will be not updated anymore. Do you have any ideas?

regards Lars

2 REPLIES 2

davidacland
Honored Contributor II
Honored Contributor II

Hi @Lars.Leppert

Is it this one you are trying:

#!/bin/sh
backupDate="$(tmutil latestbackup)"
trimmedbackupDate="${backupDate: -17}"
Echo "<result>$trimmedbackupDate</result>"

Lars_Leppert
New Contributor

Hi David, sorry for the late response. I have tested this script and it´s working fine. But i can not use it, because we save the backups on QNAP NAS shares and the script mount each clients backupshare share first. We have more than 400 Clients and if i try to update the inventory the network is not working anymore. I use the extension attribute from jamfnation and i get an output in the inventory, but i think this is only the backup completed as the first initial backup.
regards Lars