PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Create Prune script for Object storage

Open lantrix opened this issue 11 months ago • 1 comments

Describe the problem to be solved

Created after #6096 discussion as dedicated issue.

Like the prune filesystem storage script, it would be useful to have a similar one for Object Storage.

Currently videos moved to object storage (in my case B2) when deleted on the peertube instance remain on object storage.

Describe the solution you would like

A script that can be run ad-hoc to allow clearing of left over objects in the Object Store.

lantrix avatar Mar 16 '24 03:03 lantrix

i also seem to have this issue. No error in the log on Peertube, so not sure what the deal is. I'm using Backblaze B2 storage. It took a very long time to set up and while moving a video to it did not work, it worked to upload a new video and have it go straight there. Just not come back off...

edit: seems like it was my lifecycle setting. I should be good here...

mikoducky avatar May 15 '24 22:05 mikoducky

Implemented in https://github.com/Chocobozzz/PeerTube/commit/54c140c8004fad5df136fca73268c35f07249e79

As a side note: PeerTube should delete data from object storage when you delete a video. If it's not the case please check your logs and create a dedicated issue.

Chocobozzz avatar Jun 05 '24 07:06 Chocobozzz