From users-return-11738-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Jul 01 21:52:49 2009 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 91600 invoked from network); 1 Jul 2009 21:52:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 21:52:47 -0000 Received: (qmail 30703 invoked by uid 500); 1 Jul 2009 21:36:38 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 30693 invoked by uid 500); 1 Jul 2009 21:36:38 -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 30682 invoked by uid 99); 1 Jul 2009 21:36:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 21:36:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Jul 2009 21:36:28 +0000 Received: from source ([209.85.219.225]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSkvWx9R39r06z6a+TdRaiwL5jycNJtGg@postini.com; Wed, 01 Jul 2009 21:36:07 UTC Received: by ewy25 with SMTP id 25so1714861ewy.8 for ; Wed, 01 Jul 2009 14:36:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.29.201 with SMTP id i51mr2961633wea.214.1246484167074; Wed, 01 Jul 2009 14:36:07 -0700 (PDT) In-Reply-To: <4A4BBE04.9020108@gmail.com> References: <4A4A74A6.1010006@gmail.com> <4A4BBE04.9020108@gmail.com> Date: Wed, 1 Jul 2009 23:36:07 +0200 Message-ID: Subject: Re: Recovering repository (or combining two repositories) From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jul 1, 2009 at 9:50 PM, Harri T. wrote: > On 01.07.2009 12:26 Alexander Klimetschek wrote: >> >> On Tue, Jun 30, 2009 at 10:25 PM, Harri T. wrote: >>> >>> Can I some how combine the original and the new repository into one >>> working repository? >> >> If you use the datastore (not sure if it was available in 1.3 already), >> you could merge the folder/file structure, since they use UUIDs and are >> therefore unqiue. > > Hi Alexander and thanks for answering! > > I recovered the old Jackrabbit directory structure snapshot and > copied/merged the new snapshot onto same directory structure. They had some > same files: > ./repository.xml > ./home/workspaces/liferay/workspace.xml > ./home/workspaces/liferay/data/cafe/babe/cafebabecafebabecafebabe/.node.xml > ./home/workspaces/liferay/data/cafe/babe/cafebabecafebabecafebabe/672388333465d36a71297afb5d46001f.xml > ./home/workspaces/liferay/data/dead/beef/cafebabecafebabecafebabe/.node.xml > ./home/workspaces/liferay/data/dead/beef/cafebabecafebabecafebabe/672388333465d36a71297afb5d46001f.xml > ./home/workspaces/liferay/locks > ./home/repository/meta/rootUUID > ./home/repository/meta/rep.properties > ./home/repository/namespaces/ns_reg.properties > ./home/repository/namespaces/ns_idx.properties > ./home/version/data/dead/beef/facebabecafebabecafebabe/.node.xml > ./home/version/data/dead/beef/facebabecafebabecafebabe/672388333465d36a71297afb5d46001f.xml > > So, some files from the old snapshot were overwritten by the files from the > new snapshot. After this operation only the new files were accessible. > > What do you mean by "using the datastore"? How can I check the issue? Depends on your repository.xml configuration. From the above, it looks like you are using the XML persistence manager, which is not the best choice. I'd suggest you'd upgrade to the newest Jackrabbit (1.5.x) and use a bundle database persistence manager + the data store for binary data (I just noted it was introduced with 1.4, so you couldn't be using it ;-)). See the following links: http://jackrabbit.apache.org/jackrabbit-configuration.html http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ http://wiki.apache.org/jackrabbit/DataStore Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com