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.

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

Leave a Reply

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

*