Dear friends,
I am looking for the advice before I start implementing it via 3rd party tools. I wish to daily run kind of a script that will trigger exporting of the XWiki XAR backup from the instance.
Is it possible to do this via REST API or there is no functionality for this?
This is an attempt to perform XWiki Backup automation besides the way of xwiki folder and DB backup.
Thank you!
BR
Dmytro
I would not recommend using XAR export as a backup. It’s going to miss quite a few stuff right now (main ones that come to mind are likes, notifications, information about installed extensions).
Hi, see https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Backup
If you do DB backup then you already have the XAR content there. Not sure why you want it again.
Now re your question, I think the /wikis/{wikiname}
GET endpoint in https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI would do what you want.
Actually, no, doesn’t seem so. I don’t know 
It’s not a big deal, because content itself is the most important.
So, it looks like it’s a time to program a bit 
Thank you!
There is no official REST API for it as in https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI REST API but you could still call the same URL the export UI calls which is something like
https://myhost.com/xwiki/bin/export/Any/Page/Does/Not/Matter
(basically you just replace the /view/
action from usual URLs with /export/
and don’t provide any URL parameter, and you get a full XAR export)