Backup a project / export - import objects

  • 11 December 2019
  • 6 replies
  • 109 views

Hello!

 

I am looking for a way to backup/export development projects or objects to local files (outside of my K2 server), and to (re)import them from local files. Is it possible with K2? I'm afraid of losing my projects in a server crash...

 

Thanks,

 

Olivier.


6 replies

Good day  @obaudouin 


 


Please see the following on creating a package of your solution and deploying.


Creating a K2 Package: https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#PackageAndDeploy/Create-a-Package.htm,


Deploying a K2 Package: https://help.k2.com/onlinehelp/K2Cloud/UserGuide/Update_10/default.htm#PackageAndDeploy/Deploy-a-Package.htm.


 


Best,


Sunrise

Yes, but I think that is a server-side solution... I am looking for a solution to create and save my objects on client-side.

Userlevel 6
Badge +16

Hi obaudouin,


 


As previously mentioned by Sunrise, you will have to use the K2 package Deployment tool to accomplish this. If the solution is based on legacy client tools (i.e.  K2 Studio or K2 for Visual Studio), then you might be able to save a copy of the workflow definition file (.kprx) to your local drive. One other way I can think of is a backup of K2 database, you can always restore the K2 database at any given time.


 

Good day  @obaudouin 


 


Additionally can you please ensure that the said client meets prerequisites in the compatibility matrix here: https://help.k2.com/k2compatibilitysupportmatrix and that should have K2 installed. Also take note of the following notes taken/ quoted from this guide: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwi4nrD9tK_mAhVDSxUIHWxCALwQFjAAegQIBhAC&url=https%3A%2F%2Fcommunity.k2.com%2Fpfxaw45692%2Fattachments%2Fpfxaw45692%2FK2_blackpearl%2F17592%2F1%2FK2%2520Package%2520and%2520Deployment.pdf&usg=AOvVaw2ahbejMGMtqPLYWdldrg-7.


K2 Package and Deployment Installation:


The Client Components may be installed on any server in the environment that is able to connect to the K2 Server and the K2 Database and has a K2 Client (designer) installed.


We recommend, however, that packaging and deployment only be performed on the K2 Server in order to reduce network traffic.


Security



  • All packaging and deployment actions take place using the K2 Server Service account.

  • However, all calls to the target server are validated using the users credentials. The user running the deployment tool requires 'Export' rights on the target server. If SmartObject security has been set, then the deployment user requires 'Publish SmartObject' permissions as well.

  • After being granted deployment rights, the user will be able to deploy any packaged artifact to the target server, as this will happen within the K2 Server context.

  • The deploying user subsequently becomes the owner of that process, and will need to enable sharing prior to other users being able to see/edit the process.


Localization and Globalization



  • Date and time values are always generated on the server time zone.

  • Any dates required on the database are supplied by the server.

  • No time-zone information is stored in the database as all date values are local-time for the servers, and all servers in the current farm should be in the same time zone.

  • All comparisons are case-insensitive.


 


Best,


Sunrise

So, if I have understood correctly, all K2 project elements and data are saved into the K2 database, not on files?

So, if I have understood correctly, all K2 project elements and data are saved into the K2 database, not on files?

Reply