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

This widget could not be displayed.

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.

Nathaniel.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

81 views 10 6
Read article

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