export Jahia 7.3 Jahia 8 Legacy

Howto export website with wget authentication

Question

How to export a website using a script with authentication parameters
 

Answer

To export a website you need specific privileges.

 Execute the following command:

wget -t 1 -O "SITE_KEY_TO_REPLACE.zip" "DX_URL_TO_REPLACE/cms/login?username=LOGIN_TO_REPLACE&password=PASSWORD_TO_REPLACE&redirect=/cms/export/default/my_export.zip?exportformat=site&live=true&sitebox=SITE_KEY_TO_REPLACE"