[xwiki-devs] Backup of Xwiki via Command Line
Is it possible to backup the Xwiki via command line using the export feature? -- View this message in context: http://xwiki.475771.n2.nabble.com/Backup-of-Xwiki-via-Command-Line-tp7579981... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi, You could use curl or wget to retrieve an URL of this kind: http://localhost:8080/xwiki/bin/export/XWiki/XWikiPreferences?submit=Export&... You can inspect the form in XWiki.XWikiPreferences export section as other parameters are available. Alternatively for a very large wiki you might prefer a SQL dump or a real database backup, allowing incremental backups. There might be other methods I don't know about :) (REST ...) Br, Jerem 2012/6/28 echocoder <[email protected]>:
Is it possible to backup the Xwiki via command line using the export feature?
-- View this message in context: http://xwiki.475771.n2.nabble.com/Backup-of-Xwiki-via-Command-Line-tp7579981... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Thanks for your quick response Jerem. Wget failed due to the site having an SSL certificate / smart card requirement. I'm going to look further into that since its the closer I've been so far. It seems like if I am already doing dumps of the database, I do not really need to export the Xwiki. Is that an accurate assesment? -- View this message in context: http://xwiki.475771.n2.nabble.com/Backup-of-Xwiki-via-Command-Line-tp7579981... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Sat, Jun 30, 2012 at 3:32 AM, echocoder <[email protected]> wrote:
Thanks for your quick response Jerem.
Wget failed due to the site having an SSL certificate / smart card requirement. I'm going to look further into that since its the closer I've been so far.
It seems like if I am already doing dumps of the database, I do not really need to export the Xwiki. Is that an accurate assesment?
Yes, the XAR is exported from the database and imported into the database, so you already have the data from the XAR in the database dumps. The XAR is useful though if you want to move the data to another RDBMS (the XAR contains XML documents which are independent of the query language/dialect used by the database). Hope this helps, Marius
-- View this message in context: http://xwiki.475771.n2.nabble.com/Backup-of-Xwiki-via-Command-Line-tp7579981... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Thanks Marius On Mon, Jul 2, 2012 at 12:29 AM, Marius Dumitru Florea < [email protected]> wrote:
On Sat, Jun 30, 2012 at 3:32 AM, echocoder <[email protected]> wrote:
Thanks for your quick response Jerem.
Wget failed due to the site having an SSL certificate / smart card requirement. I'm going to look further into that since its the closer I've been so far.
It seems like if I am already doing dumps of the database, I do not really need to export the Xwiki. Is that an accurate assesment?
Yes, the XAR is exported from the database and imported into the database, so you already have the data from the XAR in the database dumps. The XAR is useful though if you want to move the data to another RDBMS (the XAR contains XML documents which are independent of the query language/dialect used by the database).
Hope this helps, Marius
-- View this message in context:
http://xwiki.475771.n2.nabble.com/Backup-of-Xwiki-via-Command-Line-tp7579981...
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (4)
-
Echo Coder -
echocoder -
Jeremie BOUSQUET -
Marius Dumitru Florea