Howto export website with wget authentication

  Written by The Jahia Team
 
Sysadmins
  export
   Estimated reading time:
7.1

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 -O "SITE_KEY_TO_REPLACE.zip" "DX_URL_TO_REPLACE/cms/login?username=LOGIN_TO_REPLACE&password=PASSWORD_TO_REPLACE&redirect=%2Fcms%2Fexport%2Fdefault%2Fmy_export.zip%3Fexportformat%3Dsite%26live%3Dtrue%26sitebox%3DSITE_KEY_TO_REPLACE"