def copyGDBData(sourceGDBPath, destinationGDBPath):
    success = True
    pymsg = ""
    printMsg = True
    debug = False
    
    try:
        #startTime = datetime.now()
        print '\n{:<14}{:<100}'.format("Source:", sourceGDBPath)
        print '{:<14}{:<100}\n'.format("Destination:", destinationGDBPath)
        
        # Verify input parameter types
        
        # Check out extensions
        print "- Check out network license..."
        if arcpy.CheckExtension("Network") == "Available":
            arcpy.CheckOutExtension("Network")
        else:
            # Raise a custom exception
            raise LicenseError
        
        descGDB = arcpy.Describe(sourceGDBPath)
        
        if debug:
            # Print some Describe Object properties
            if hasattr(descGDB, "name"):
                print "Name:        " + descGDB.name
            if hasattr(descGDB, "dataType"):
                print "DataType:    " + descGDB.dataType
            if hasattr(descGDB, "catalogPath"):
                print "CatalogPath: " + descGDB.catalogPath
        
        # Find children datasets
        datasets = []
        copyExcludeList = []
        for child in descGDB.children:
            if child.dataType != "RelationshipClass":
                datasets.append(child.name)
            else:
                descRel = arcpy.Describe(sourceGDBPath + "/" + child.name)
                for destClassName in descRel.destinationClassNames:
                    copyExcludeList.append(destClassName)
        
        # Do not copy the datasets that are the destination datasets in
        #   relationships since these datasets will automatically be
        #   copied when the origin datasets are copied
        copyList = [dataset for dataset in datasets if dataset not in copyExcludeList]
        
        if debug:
            print "\nAll datasets (excluding relationship classes):"
            print datasets
            print "\nDestination tables involved in relationship classes:"
            print copyExcludeList
            print "\nCopy the following:"
            print copyList
            
        if 0 > len(copyList):
            n = 1
            print "- Copying database data..."
            for dataset in copyList:
                srcPath = os.path.join(sourceGDBPath, dataset)
                destPath = os.path.join(destinationGDBPath, dataset)
                print "\tDataset: {} ({}/{})".format(dataset, n, len(copyList))
                if arcpy.Exists(destPath):
                    print "\t\tWARNING: Will not copy dataset."
                    print "\t\tDataset already exists in destination: " + destPath
                    print "\t\t(If dataset is participating in a relationship, then it was copied when origin dataset(s) was copied)."
                else:
                    print "\tCopying..."
                    results = copyData(srcPath, destPath)
                    copySuccess = checkResults(results, printMsg)
                    if not copySuccess:
                        success = False
                n = n + 1
        else:
            print "- No database data to copy."
            
    except LicenseError:
        success = False
        print "ERROR: Network license is unavailable"
    except:
        success = False
        pymsg = "\tError Info:\n\t" + str(sys.exc_info()[1])
        
    finally:
        arcpy.CheckInExtension("Network")
        # print '{:<14}{:%Y-%m-%d %H:%M:%S}'.format("Start time:", startTime)
        # print '{:<14}{:%Y-%m-%d %H:%M:%S}'.format("End time:", datetime.now())
        return [success, pymsg]
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/UtilitiesArcPy.py/copyGDBData/swapped operands of `>`