goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
24.01k stars 4.75k forks source link

database backup #5657

Open ghost opened 6 years ago

ghost commented 6 years ago

Raising this issue to track feedback from Matt Cowger on Slack.

We need to support some mechanism by which a user can back up their Harbor node(s). A few possibilities I can think of on a whim:

Important to note that backing up is useless if we don't provide a mechanism by which a user can restore the backup.

cd1989 commented 6 years ago

This is indeed a useful feature. A regular snapshot is helpful.

oskoss commented 6 years ago

Agreed for us, this is a blocker for using Harbor in production.

ghost commented 6 years ago

@lweitzman – thoughts on how you think this might look?

reasonerjt commented 6 years ago

@cd1989 by snapshot, do you mean a snapshot to another DB instance or storage? I personally don't think we can expose a backup feature in the OSS bits of Harbor, as this is quite deployment dependent.

So probably just a click to export SQL scripts, but do you think that'll be useful for the users?

cd1989 commented 6 years ago

@reasonerjt I basically agree with you. My origin opinion is, Harbor can provide a config for snapshot in the deployment of harbor. Then harbor can generate a snapshot of the whole database (SQL scripts for example) regularly. After a second though, it seems not necessary and too heavy.

So probably just a click to export SQL scripts, but do you think that'll be useful for the users? I think it's useful. So that user can snapshot the database easily, and also if necessary, user can create some cron task to regularly snapshot the database to some external storage

lwqcz commented 5 years ago

I would love this feature plus the possibility to upload that backup to somewhere else as disaster recovery measure. Even API access to backup features would be fine as we can control that from ansible or so for instance.

👍

jcmartins commented 5 years ago

+1

beppler commented 5 years ago

+1

LennartTimmers commented 2 years ago

+1 any update on when this might be implemented?

github-actions[bot] commented 2 years ago

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.

wy65701436 commented 1 year ago

for the helm based installation, you can try with https://goharbor.io/docs/2.6.0/administration/backup-restore/