How to delete an old backup via cron?

I use GAE / J and take backup via cron. https://developers.google.com/appengine/articles/scheduled_backups

Backup is possible using the API (/_ah/datastore_admin/backup.create), but I could not find a way to delete the backup by API.

I already tried "backup.delete", but it did not work.

Does anyone know how to delete an old backup via cron?

Thanks.

+4
source share
1 answer

If you go to the data warehouse administrator’s page, select some backups and click “Delete”, you will see that the page on which you have the page has a form on it with hidden fields. This form submits backup identifiers (as separate fields with the same name "backup_id") to this URL: /_ah/datastore_admin/backup_delete.do

Backup_id are the keys of the _AE_Backup_Information objects in the data warehouse.

I have not tried using it yet. The form uses the XSRF token.

+1
source

All Articles