gitbucket-plugins / gitbucket-h2-backup-plugin

GitBucket H2 Database Backup Plugin
21 stars 7 forks source link

Error calling http://localhost:8080/database/backup from commandline #29

Open grafzahlx opened 4 years ago

grafzahlx commented 4 years ago

I tried using the backup script provides here https://github.com/gitbucket/gitbucket/wiki/Backup but the curl statement for starting the database export doesn't work. If i call the site myself in a browser like firefox it works like a charm. So I tried curl -v and saw that it responds an 401 Unauthorized code.

So I tried with authorization like the following: curl -u : http://localhost:8080/database/backup but this also doesn't work.

I am using the acutal versions of gitbucket 4.33 and the plugin 1.8

Please provide some help on this issue.

c0llab0rat0r commented 3 years ago

If you're still having trouble with this, try using authorization tokens, documented on the updated readme: https://github.com/gitbucket-plugins/gitbucket-h2-backup-plugin/blob/ad16096355b22329c8d8f86ee412eb6da6017828/README.MD