DeployStudio Date Last Synchronized to Master Server

This script is useful if you want to keep up with how synchronized your DeployStudio replicas are with the master server. Basically it reads the “/Library/Preferences/com.deploystudio.replica.plist” file to get the date it was last synchronized with the DeployStudio master server.

if [ -r "/Library/Preferences/com.deploystudio.replica.plist" ]
syncDate=$(defaults read /Library/Preferences/com.deploystudio.replica.plist | grep lastSync | cut -d '"' -f 2 | cut -d ' ' -f 1)
printf $syncDate
exit 0
exit 0

Leave a Reply

Your email address will not be published. Required fields are marked *