export_triggers_actions.cmd 721 B

123456789101112
  1. SET WEBROOT=http://localhost:81/
  2. SET EXPORT=%WEBROOT%/webservices/export.php
  3. SET USER=admin
  4. SET PWD=test
  5. REM The order (numbering) of the files is important since
  6. REM it dictates the order to import them back
  7. wget --output-document=sample.data.ta-triggers.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT Trigger&format=xml"
  8. wget --output-document=sample.data.ta-actions.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT ActionEmail&format=xml"
  9. wget --output-document=sample.data.ta-links.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT lnkTriggerAction&format=xml"
  10. pause