Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup layers before truncating #91

Open
jacobdadams opened this issue May 24, 2024 · 0 comments
Open

Backup layers before truncating #91

jacobdadams opened this issue May 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jacobdadams
Copy link
Member

jacobdadams commented May 24, 2024

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")
@jacobdadams jacobdadams added the enhancement New feature or request label May 24, 2024
@jacobdadams jacobdadams self-assigned this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant