diff --git a/sync_from_live_addon b/sync_from_live_addon new file mode 100644 index 0000000..7991270 --- /dev/null +++ b/sync_from_live_addon @@ -0,0 +1,20 @@ +type: update +name: Sync From Live +description: Sync from live environment + +targetNodes: + nodeGroup: cp + + +actions: + liveSync: + - nodeGroup: cp + cmd: |- + cp -R -u /var/www/webroot/sourcefiles/* /var/www/webroot/ROOT && cd /var/www/webroot/ROOT/ && wp db import /var/www/webroot/sourcefiles/dbexport/dbexport.sql --quiet + +buttons: + - caption: Sync From Live + action: liveSync + loadingText: Syching from live... + confirmText: Do you want to initiate sync process? + successText: The syching process has been finished successfully. \ No newline at end of file