Drone

S3 storage migration

I’ve been running my Drone instance for a while now with just native database storage (postgres) for build logs. Today, I got my act together and enabled S3 storage for the build logs. I notice my bucket is now filling up sequentially starting in the 81,000 range. I guess that means I have 81,000-ish logs still in my database.

How hard would it be to migrate those into the S3 bucket and purge them from my database? Can anyone tell me what specifically would need altered in the database metadata/pointer-wise to move a log from it to S3?