Is there a way to automate the export of pocketquery as a regular backup

Pocketquery has a import/export manual function however, is there a way to automate the export (as a backup) so it is performed on a regular basis e.g. once a week?

1 answer

1 accepted

Accepted Answer
0 votes

Hi Nathaniel,

I haven't thought about this before but it should be possible quite easily. The export is triggered by a GET request to this URL: <base-url>/admin/pocketquery/export.action. The only requirement is that the triggering user is a Confluence administrator.

So you can write a simple script that triggers a GET request with authentication as an admin user to that URL and save the response. The response should be the XML file that you can download manually.

Let me know if this is enough information of if you need further advise.

Regards, Felix (Scandio)

Hi Felix,

Thank you, that works. If you happen to know how to easily script the admin elevation in Confluence that would be appreciated - otherwise it's the Selenium route for me to get past the 2nd authentication requirement once logged in to elevate for admin access.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

311 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you