Data Management Tools/Geodatabase Administration/ Compress tool in Python

Discussion created by hchapa89 on Dec 12, 2013
Latest reply on Aug 28, 2014 by cdd109
Under Systems toolboxes/Data Management Tools/Geodatabase Administration/Compress tool. Is there a way to recreate this tool in python so it can compress the geodatabase enterprise every week. Any help in finding this in arcpy.

would the following script be the python for this tool

import arcpy
arcpy.Compress_management("Database Connections\Connection to brockville.sde")