gitbucket-h2-backup-plugin icon indicating copy to clipboard operation
gitbucket-h2-backup-plugin copied to clipboard

HTTP call to http://YOUR_GITBUCKET/database/backup should be POST only

Open aadrian opened this issue 8 years ago • 5 comments

The HTTP call to http://YOUR_GITBUCKET/database/backup to create the backup should be POST only, not GET since the remote system is "changing".

Also it should really be secured for admins only, e.g. at least with a Token, so that it can be used with curl or wget.

Thank you.

aadrian avatar Apr 02 '17 00:04 aadrian

Each of these issues should be resolved now (using POST, requiring admin, and using api tokens as credentials).

c0llab0rat0r avatar Apr 18 '21 05:04 c0llab0rat0r

@c0llab0rat0r This looks great, and also the detailed test suite too! Thank you.

aadrian avatar Apr 19 '21 06:04 aadrian

It's already released. Can we close this?

takezoe avatar Apr 20 '21 14:04 takezoe

I just update to the latest version of the H2 Backup plugin.

How can I redirect from with the plugin page to save the backup to /media/usb/backups in stead of the default location?

stevemesser avatar Feb 12 '23 21:02 stevemesser

Never mind, I just tried a relative path and it worked fine, I could have sworn I tried that and that it didn't work.

stevemesser avatar Feb 12 '23 22:02 stevemesser