Selaa lähdekoodia

Export script for triggers, actions and their link

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@273 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 vuotta sitten
vanhempi
commit
50e7bce413
1 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 12 0
      setup/data/structure/export_triggers_actions.cmd

+ 12 - 0
setup/data/structure/export_triggers_actions.cmd

@@ -0,0 +1,12 @@
+SET WEBROOT=http://localhost:81/
+SET EXPORT=%WEBROOT%/webservices/export.php
+
+SET USER=admin
+SET PWD=test
+
+REM The order (numbering) of the files is important since
+REM it dictates the order to import them back
+wget --output-document=23.triggers.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT Trigger&format=xml"
+wget --output-document=24.actions.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT ActionEmail&format=xml"
+wget --output-document=25.trigger-actions.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT lnkTriggerAction&format=xml"
+pause