octue / django-gcp

Everything required to run Django on GCP (storage, pubsub events, tasks, logging, errors)
Other
21 stars 3 forks source link

Copy blob between versioned buckets should copy blob versions #38

Open thclark opened 1 year ago

thclark commented 1 year ago

Feature request

Use Case

I want to move a blob from a versioned bucket to a different place in the same versioned bucket (or to a new versioned bucket). I want to move all generations of that blob, keeping its history consistent.

Perhaps this could be done as an option, preserve_generations=True.

Current state

The copy_blob function copies the latest generation of the blob only.