On Feb 7, 2011, at 4:17 PM, Olivier Picciotto wrote:

Hello,

 

SCP command is now running ok with Nick’s version.  I am now able to copy from a JCR to a XML file on the file system.

 

Now , Question :

 

If I want to export a gateIn ‘Site’ from one server to an Other what nodes should I Copy ? On the other way round where should I copy back to nodes to the target server ?

yes, normally you should copy a node, but I don't know if a plain JCR copy will make it work. The reason is that some node properties are JCR path properties, i.e a reference to a node inside the tree determined by the site. For instance, the layout of a site is a determined by such a property:

[/production/mop:workspace/mop:portalsites/mop:classic/mop:rootnavigation/mop:template]% ls
/production/mop:workspace/mop:portalsites/mop:classic/mop:rootnavigation/mop:template
+-properties
| +-jcr:primaryType: mop:pathattribute
| +-jcr:uuid: 'e294def5c0a8008d1b4e0f0ec67e16e9'
| +-mop:value: /production/mop:workspace/mop:portalsites/mop:classic/mop:rootpage/mop:children/mop:templates/mop:children/mop:default
+-children

so if you make a bare copy, you will still reference the old property, so copy should be done with care.

I think that Nick is developing something that goes along in the line of what you want to do, but I am not sure of that.

 

Can you explain exactly what is a Workspace ?

Workspace defines the scope of the data used by GateIn to manage the various portal entities, it contains pages, navigations, portlets, etc...

  I saw a command to export a workspace to the file system. Is this similar to the SCP command ?

yes it is similar but experimental as the goal is to export an entire workspace. JCR export is limited to restoring one single node, so you cannot for instance export a root node and then later restore it. That's why we used a "/production" node in GateIn in order to be able to back/restore nodes and not abuse the root.

 

Thx,
Olivier

 

De : Julien Viet [mailto:julien@julienviet.com] 
Envoyé : vendredi 4 février 2011 23:28
À : Nick Scavelli
Cc : Olivier Picciotto; 
gatein-dev@lists.jboss.org
Objet : Re: [gatein-dev] How to export nodes using CRaSH SCP protocol ?

 

hi,

 

I fixed the issues with the incorrect service provider in trunk.

 

Could you describe the problem with the "--" and how it happens ?

 

For the record about parameter argument parsing, I have written my own command line parser in order to be able to provide contextual and accurate code completion (a feature requested by many users but that was totally not trivial to implement). I have not yet implemented the "--" but planning to do it soon.

 

I will try to make a new beta crash release next week once I get this done and the CRASH-23 fixed.

 

thanks for the feedback

 

On Feb 4, 2011, at 1:44 AM, Nick Scavelli wrote:



'gtn' should be used, however there's an issue with the service provider config file (probably due to refactoring).  I have replied to your forum post @
http://community.jboss.org/thread/162145?tstart=0.

Julien I have created two JIRA's related to the scp command for CRaSH:
https://jira.exoplatform.org/browse/CRASH-22
https://jira.exoplatform.org/browse/CRASH-23

- Nick

On 02/03/2011 12:27 PM, Olivier Picciotto wrote:
No, ‘gtn‘ password  doesn’t do the trick …

 

De : Julien Viet [mailto:julien@julienviet.com] 
Envoyé : jeudi 3 février 2011 18:27
À : Olivier Picciotto
Cc : gatein-dev@lists.jboss.org
Objet : Re: [gatein-dev] How to export nodes using CRaSH SCP protocol ?

 

Actually try the "gtn" password. Im travelling until end of this week, and I wont be much responsive

Le 3 févr. 2011 à 14:14, Olivier Picciotto <
olivierp@convertigo.com> a écrit :

Reading the forum, the post, http://community.jboss.org/message/561004#561004 speaks about the CRaSH console for acessing the JCR through the command line interface. It doese work ok and We sucessfully managed to install int in GateIN, access it though telnet and ssh, list nodes etc ...

Now, the CRaSH documentation speaks about exporting nodes with the SCP protocol

 'scp -P 2000 root@localhost:portal:portal-system:/production/app:gadgets . '

 We tried that with CRaSH  1.0.0-beta17

Documentation says that CRaSH password is 'crash' so this is what we entered as password when the SCP asks it. unfortunatly the SCP command returns immediatly with a :

'Connection to localhost closed by remote host.' message

And no data is copied

Any Ideas ?

 

_______________________________________________
gatein-dev mailing list
gatein-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev
 
_______________________________________________
gatein-dev mailing list
gatein-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev

 

 

_______________________________________________
gatein-dev mailing list
gatein-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev