Hey Greg O., to answer your questions:
- 1.
Yes, the state of the snapshots and files_scheduled_for_deletion will be restored
- 2.
MotherDuck maintains snapshots of the catalog database, which you can view with MD_INFORMATION_SCHEMA.DATABASE_SNAPSHOTS. In the event you need restore, you can match the snapshot timestamp with your own R2 object backup timestamp to determine the best snapshot to restore from.
If R2 rejects DeleteObject because of a bucket-lock rule, does ducklake_cleanup_old_files leave the file scheduled and safely retryable without removing its metadata record?
When a file cannot be cleaned up due to a bucket-lock rule, you'll get an IO error, and you can retry ducklake_cleanup_old_files again because the files_scheduled_for_deletion record is unchanged
Hope this helps!