[ 
https://issues.apache.org/jira/browse/SOLR-10108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15926341#comment-15926341
 ] 

Erick Erickson commented on SOLR-10108:
---------------------------------------

Jan:

Thanks! try 
{code}
solr zk cp /tmp/zoo zk:/
or
solr zk cp /tmp/zoo/ zk:/
{code}

I put a couple of examples in the help section, did I mess those up?
{code}
 to copy to local: 'bin/solr zk cp -r zk:/ /some/dir -z localhost:2181'
to restore to ZK: 'bin/solr zk cp -r /some/dir/ zk:/ -z localhost:2181
{code}

I struggled a bit with how much I wanted to recreate the Unix style cp 
commands, one of those cases where the differences will hurt you. The problem I 
remember having was that the shell gets in there and expands the '/tmp/*' form 
and gives me a list of the children of tmp that makes parsing the parameters 
"interesting".

This is *nix though, right?

Still hoping for a Windows user to give it a spin too.

> bin/solr script recursive copy broken
> -------------------------------------
>
>                 Key: SOLR-10108
>                 URL: https://issues.apache.org/jira/browse/SOLR-10108
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>         Attachments: SOLR-10108.patch
>
>
> cp /r zk:/ fails with "cannot create //whatever".



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to