From users-return-530-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Aug 03 11:43:11 2006 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 43977 invoked from network); 3 Aug 2006 11:43:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 11:43:08 -0000 Received: (qmail 41134 invoked by uid 500); 3 Aug 2006 11:41:36 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 39739 invoked by uid 500); 3 Aug 2006 11:41:32 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 38687 invoked by uid 99); 3 Aug 2006 11:41:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 04:41:26 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ntoper@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 04:13:19 -0700 Received: by nf-out-0910.google.com with SMTP id p77so1011350nfc for ; Thu, 03 Aug 2006 04:12:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OZG550o2eF6kNI+tdr1/bwhWxYwsbX5kmWCTY0fP7QS/XCiKwxhujOiHyFu97N744xSqkMNVTZjxACdbrOV3RYNV9wcu+ugZh4RrXnvxAT8STZBwmRT62W6oIS1zPAmuIp9Q9Fm7hSUx/sxEgOvpyF6MqUKJ4Bq3MSYFO53WUR4= Received: by 10.78.107.8 with SMTP id f8mr682898huc; Thu, 03 Aug 2006 04:12:58 -0700 (PDT) Received: by 10.78.125.9 with HTTP; Thu, 3 Aug 2006 04:12:58 -0700 (PDT) Message-ID: Date: Thu, 3 Aug 2006 13:12:58 +0200 From: "Nicolas " To: users@jackrabbit.apache.org Subject: Re: importing / restoring repository content In-Reply-To: <44D1C355.6080908@pobox.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9523_13256206.1154603578299" References: <44D1C355.6080908@pobox.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_9523_13256206.1154603578299 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Why don't you use the backup tool? It is designed to backup + restore content from a Jackrabbit repository. It is though still in development. If you want to import a specific worskpace, you need to delete first all this subtree /jcr:root/jcr:system/ since it is shared by all workspace and is used only by Jackrabbit Nico my blog! http://www.deviant-abstraction.net !! On 8/3/06, Torgeir Veimo wrote: > > What's the best way to restore content from an export file? > > I've tried importing content with path /jcr:root as parent, with > ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, with a file containing > exported content from the root of a different repository. > > This fails with > > javax.servlet.ServletException: /jcr:root/jcr:system/jcr:nodeTypes: > cannot add a child to a protected node > > which I believe is technically correct. My aim was to get the option of > repository movability, which would imply that node types would > automatically be transported over by the export file. Do I have to do > this manually, exporting only explicitly made children of /jcr:root, > avoiding jcr:system? > > -- > -Torgeir > ------=_Part_9523_13256206.1154603578299--