You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Nicolas <nt...@gmail.com> on 2006/07/15 19:23:41 UTC
Backupping all workspaces automatically?
Hi,
I am finishing to parse the configuration XML file for the backup tool.
Right now, things are organized this way:
...XML before
<Ressources>
<Resource name="node version histories" savingClass="FQN backup class"/>
<Resource name="namespace" savingClass="FQN backup class"/>
...XML after
As you can see, each resource you want to backup have to be specified as a
resource and you need to call the specific backup class. For now, there is
no need to add any additional parameters in the file if we automatically
backup all workspace (the wisest solution I think)
For instance you could want:
<Resource name="custom node type" savingClass="FQN backup class">
<!-- the resource class is fetching those parameters if needed.
For now, only one needs it -->
<param name="param1" value="1" />
</Resource>
If I do so, it complexifies, the BackupConfigurationParser and it is not
needed for now if we automatically backup all workspaces. I propose so, to
implement only a resource tag with no parameter except savingClass.
Do you agree? Do you see any use case where this could be needed please?
Thanks
Nico
my blog! http://www.deviant-abstraction.net !!
Re: Backupping all workspaces automatically?
Posted by Tobias Bocanegra <to...@day.com>.
if the backup class is intantiated by the config it can define it's
one parameters as it needs. have a look how the persistence managers
are created as example.
regards, toby
On 7/15/06, Nicolas <nt...@gmail.com> wrote:
> Hi,
>
> I am finishing to parse the configuration XML file for the backup tool.
> Right now, things are organized this way:
>
> ...XML before
> <Ressources>
>
> <Resource name="node version histories" savingClass="FQN backup class"/>
> <Resource name="namespace" savingClass="FQN backup class"/>
>
> ...XML after
>
> As you can see, each resource you want to backup have to be specified as a
> resource and you need to call the specific backup class. For now, there is
> no need to add any additional parameters in the file if we automatically
> backup all workspace (the wisest solution I think)
>
> For instance you could want:
>
> <Resource name="custom node type" savingClass="FQN backup class">
> <!-- the resource class is fetching those parameters if needed.
> For now, only one needs it -->
> <param name="param1" value="1" />
> </Resource>
>
> If I do so, it complexifies, the BackupConfigurationParser and it is not
> needed for now if we automatically backup all workspaces. I propose so, to
> implement only a resource tag with no parameter except savingClass.
>
> Do you agree? Do you see any use case where this could be needed please?
>
> Thanks
> Nico
> my blog! http://www.deviant-abstraction.net !!
>
>
--
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---