Posted on 03-26-2015 11:01 AM
We created a Configuration Profile that should be setting the Time Machine backup location on computers. We have made sure that the client computer can connect to the Backups share on the server. We have the path in Casper set to afp://servername.air.org/Backups. We can tell that the policy is in fact applying because we also set an excluded path but when you go in to Time Machine settings, the servers share is not being set as the destination.
Posted on 03-27-2015 06:02 AM
Hi Kip. You can try something along these lines. The TMDestination variable should be set with a local account name and password that has read/write access to the Time Machine volume as well as a valid server name in place of 'tmserver.org.'
#!/bin/sh
##Setting the Time Machine destination here
##tmutil REQUIRES a username and password be set in the URL as we're doing below. Recommendation is to
##create a new account on your server that has read/write access over the TM volume and set that username/password
##combo in the URL below, replacing tmuser:tmpassword.
TMDestination="afp://tmuser:tmpassword@tmserver.org/Time_Machine_Backups"
echo "Setting Time Machine Destination"
/usr/bin/tmutil setdestination $TMDestination
##Ensure that Time Machine is Enabled for the targeted machine
echo "Enabling Time Machine"
/usr/bin/tmutil enable
exit 0