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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.