You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Fabián Mandelbaum <fm...@gmail.com> on 2010/05/03 16:32:44 UTC

Problems with hot backup of running JackRabbit 1.4.11 repo with rsync

Hello there,

    I have a JackRabbit 1.4.11 repo running in-process (Model 1
deployment) for my application. This repo is configured to use a
DataStore, like this:

...
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
</Repository>


>From what I read about the DataStore at
http://wiki.apache.org/jackrabbit/DataStore, and about backing up at
http://wiki.apache.org/jackrabbit/BackupAndMigration, I see that hot
backup (backing the repo up while it's running) is supported for this store.

So, I go and happily fire rsync -rvP repo_location/ backup_location/

The 1st time it takes some time, because, as expected, it has to copy
all files.

Right after the rsync finishes, I try to run it again, exactly the same
CLI, the repo's usage is very low, or even none... however rsync
transfers *all* files again, as if they've all changed.

Why is rsync transferring all files again? If use is low or none,
shouldn't the repository files for the running repository be the same as
before?

What am I doing wrong?

Thanks in advance for your answers.


Re: Problems with hot backup of running JackRabbit 1.4.11 repo with rsync

Posted by Thomas Müller <th...@day.com>.
Hi,

> Indeed, I've found out that the 2nd rsync command was missing the -u
> (Update) parameter.

I think it would make sense to document that on the wiki page
http://wiki.apache.org/jackrabbit/DataStore - if you have time... I
guess or or two sentences  "How to Backup using Rsync" and the command
to use.

> I'm sorry to have bothered you with this.

No problem. I always have problems using rsync. It's very powerful,
but also quite dangerous if used wrong.

Regards,
Thomas

Re: Problems with hot backup of running JackRabbit 1.4.11 repo with rsync

Posted by Fabián Mandelbaum <fm...@gmail.com>.
Hello Thomas, list.

Indeed, I've found out that the 2nd rsync command was missing the -u
(Update) parameter.

I'm sorry to have bothered you with this.

On Tue, May 4, 2010 at 11:44 AM, Thomas Müller <th...@day.com> wrote:
> Hi,
>
> I guess this is more a question about rsync than about the
> FileDataStore. I'm sorry, I don't know rsync well enough.
>
> Regards,
> Thomas
>



-- 
Fabián Mandelbaum
IS Engineer

Re: Problems with hot backup of running JackRabbit 1.4.11 repo with rsync

Posted by Thomas Müller <th...@day.com>.
Hi,

I guess this is more a question about rsync than about the
FileDataStore. I'm sorry, I don't know rsync well enough.

Regards,
Thomas