It isn't really rsync, but you want to do export/import, then you can
use the JCR system view.
On Instance #1: session.exportSystemView("/foo/bar", someOutputStream,
false, false);
On Instance #2: session.importXml("/foo/bar", someInputStream,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW);
As system view is defined by the spec, you should be able to do this
across repository types/implementations.
HTH,
Justin
On Sat, Apr 23, 2011 at 2:54 PM, sam lee <[email protected]> wrote:
> Hey,
>
> I have one sling instance running with lots of content.
> And, I have a new sling instance without content.
> Is there rsync-like way of migrating content from older instance to newer
> one?
> They run different version of sling.
>
> Or, how would you copy a JCR tree /foo/bar/* from one machine to another?
>