grr/server/grr_response_server/databases/migration.py
def MigrateArtifacts(overwrite=False):
  """Migrates Artifacts from AFF4 to REL_DB.

  Args:
    overwrite: If True, existing artifacts with identical names will be
      overwritten, otherwise skipped.
  """

  artifacts = artifact_registry.REGISTRY.GetArtifacts(
      reload_datastore_artifacts=True)
  logging.info("Migrating %s artifacts.", len(artifacts))

  for artifact in artifacts:
    _MigrateArtifact(artifact, overwrite)
Migrates Artifacts from AFF4 to REL_DB.

  Args:
    overwrite: If True, existing artifacts with identical names will be
      overwritten, otherwise skipped.
  
Migrates Artifacts from AFF4 to REL_DB.
Migrates Artifacts from AFF4 to REL_DB .
def MigrateArtifacts(overwrite=False):
  artifacts = artifact_registry.REGISTRY.GetArtifacts(
      reload_datastore_artifacts=True)
  logging.info("Migrating %s artifacts.", len(artifacts))
  for artifact in artifacts:
    _MigrateArtifact(artifact, overwrite)
def MigrateArtifacts ( overwrite = False ) : artifacts = artifact_registry . REGISTRY . GetArtifacts ( reload_datastore_artifacts = True ) logging . info ( "Migrating %s artifacts." , len ( artifacts ) ) for artifact in artifacts : _MigrateArtifact ( artifact , overwrite )
Migrates Artifacts from AFF4 to REL_DB.
Migrates Artifacts from AFF4 to REL_DB .
"""Migrates Artifacts from AFF4 to REL_DB.

  Args:
    overwrite: If True, existing artifacts with identical names will be
      overwritten, otherwise skipped.
  """
overwrite
If True, existing artifacts with identical names will be
overwritten, otherwise skipped.
If True existing artifacts with identical names will be overwritten otherwise skipped .