...
Preparing the files - Let's say you have these folders from your backup
- wflow/app_src/supportTicket/supportTicket_1
- wflow/app_src/supportTicket/supportTicket_2
- wflow/app_src/supportTicket/supportTicket_3
In each version folder, perform a git branch . In each folder version (n) folder, it should contain the next version (n+1).
In the example below, we can see that folder version 1 contains version 2 when we execute git branch command.
Code Block C:\Joget-DX8-Enterprise\wflow\app_src\supportTicket\supportTicket_1>git branch help master * supportTicket_1 supportTicket_2
English For example, in supportTicket_2, it does not contain version 3 somehow. Code Block C:\Joget-DX8-Enterprise\wflow\app_src\supportTicket\supportTicket_2>git branch master * supportTicket_2
We can run git branch supportTicket_3 to create the branch.
Code Block C:\Joget-DX8-Enterprise\wflow\app_src\supportTicket\supportTicket_2>git branch supportTicket_3 C:\Joget-DX8-Enterprise\wflow\app_src\supportTicket\supportTicket_2>git branch master * supportTicket_2 supportTicket_3
Copy them into your working wflow folder.
Omit wflow/app_src/supportTicket/app.properties from the backup to prevent potential conflicts such as with existing remote GIT server and so on.- In Joget, create a new app with matching app ID, "supportTicket". You are now on version 1 that is currently empty.
- Go to Settings, GIT Configurations, check "Auto Sync DB From Git".
- Click Builders to refresh the page. This will trigger Joget to perform GIT Sync. Your Joget will now sync from GIT into Joget DB for app version 1.
You should now see all the forms/lists/UIs/processes recovered. Click Version, you should see the next version shows up, version 2. Choose the version and click view. It will perform the same sync from GIT too.
Remember, folder version n must contain n+1 branch for this to work. Use "git branch appId_n+1" command to create the branch if needed to as highlighted in step 1 earlier.- Repeat step 5 for the next version until all versions sync up.
...
- Shutdown Joget server so that it does not lock on to the GIT folder.
- Use your favorite GIT interface, find out at which commit changes are made to remove the content in the 2 files mentioned above. For example, we found out that it happened in commit e87ec85.
Make use of GIT, and perform a GIT reset.
Code Block C:\Joget-DX8-Enterprise\wflow\app_src\supportTicket\supportTicket_3>git reset e87ec85 Unstaged changes after reset: M appConfig.xml M appDefinition.xml C:\Joget-DX8-Enterprise\wflow\app_src\supportTicket\supportTicket_3>git status On branch supportTicket_3 Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: appConfig.xml modified: appDefinition.xml
If you are using Github Desktop, you can right-click on e87ec85 and choose "Revert Changes in Commit".
Verify the changes, resolve the conflicts if necessary, and commit the unstaged files. If you are using Github Desktop, you can inspect them in "Changes" tab, resolve the conflicts if necessary, and commit the unstaged files.
- Start Joget server, go to the app, and trigger a sync from GIT to Joget.