6 Replies Latest reply on Jul 8, 2014 9:12 AM by JFWX5

    FMS13 Server side scripting


      Hi All,



      I have the following Applescript that takes all the files in " /Library/FileMaker Server/Data/Backup/Daily"


      Zips, renames the Zip file and drops the file in the " /Library/FileMaker Server/Data/Backup/Daily/Daily Zipped directory, then it deletes


      the original filess in " /Library/FileMaker Server/Data/Backup/Daily"



      property backupFolder : "/Library/FileMaker Server/Data/Backup/"


      set dailyFolder to backupFolder & "Daily"

      set dailyZippedFolder to backupFolder & "Daily Zipped/"

      set timeStamp to do shell script "/bin/date +FM_Daily_Backup_%Y_%m_%d"

      set ZIPfile to quoted form of (dailyZippedFolder & timeStamp & ".zip")


      do shell script "/usr/bin/zip -jr " & ZIPfile & space & quoted form of dailyFolder

      do shell script "/bin/rm -rf " & quoted form of dailyFolder & "/*"



      How do I turn this applescript into a FMS13 serverside script to be run on a FMS schedule?