From: Eric B. <er...@eb...> - 2007-03-05 17:42:42
|
Le Lundi 5 Mars 2007 17:42, Kel Raywood a =E9crit=A0: > On Fri, 2 Mar 2007, Arno Lehmann wrote: > > I would not like a second clause to define where the restores go to, > > and I'm quite sure it is possible to find a usable way mark the > > "where"-entry somehow. > > How about just adding an entry like "strip prefix". > > eg. If you want to restore /.snapshot/home to /home you would put > > strip prefix =3D /.snapshot I think it's not sufficient, it could be an option, but it will be converted into something more powerful. > Though not nearly as powerful as regular expressions, its use would be > obvious and it would be sufficient for the vast majority of cases. =46or example, restore a file at the same place with a .old extention is mandatory. And it must use the same way. We should not limit this option to some simple cases. We could add options for simple cases. (like with runscript, you can use shortcuts) strip prefix =3D=20 replace extention =3D etc.. > It would be nice to be able to do this at backup time as well. That is, > have a "strip prefix" entry either in the Job or FileSet resource. > Having it in the Job resource would be simplest and consistent with > having it in a restore job. Thanks for your feedback, Bye |