harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Can I restore images from artifact_trash table?

Open abinet opened this issue 7 months ago • 3 comments

Can I restore Images deleted by retention policy but cleanup has not executed yet?

abinet avatar May 28 '25 09:05 abinet

yes, you would need to do it on the database level..

Vad1mo avatar May 28 '25 11:05 Vad1mo

Thank you for reply. Can you provide general idea, what need to be done in database in that case?

abinet avatar May 28 '25 12:05 abinet

The artifact_trash cannot used to recover the delete artifact, you have to repush the image to recover it.

stonezdj avatar Jun 03 '25 07:06 stonezdj

Based on my understanding, the metadata in artifact_trash is not sufficient to fully restore the original data. It appears to be designed to support RETENTION and GC COLLECTION processes, and only includes essential information relevant to those tasks.

Dark0096 avatar Jun 24 '25 12:06 Dark0096

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] avatar Aug 24 '25 09:08 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Sep 23 '25 09:09 github-actions[bot]