Skip to content

Backup layers before truncating #91

@jacobdadams

Description

@jacobdadams

Add the option to backup layers to AGOL as feature collections (maybe gdbs?) prior to truncating and then try to restore if load fails.

backup_fc_item = materials_original_item.export(title="Materials Table Backup", export_format="Feature Collection")
materials_original_item.tables[0].manager.truncate(asynchronous=True, wait=True)
materials_original_item.tables[0].append(backup_fc_item.itemid, upload_format="featureCollection")

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions