Skip to main content
Question

Last Backup TimeMachine

  • May 23, 2016
  • 2 replies
  • 16 views

Forum|alt.badge.img+4

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

davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • May 23, 2016

Hi @Lars.Leppert

Is it this one you are trying:

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

Forum|alt.badge.img+4
  • Author
  • Contributor
  • June 15, 2016

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