--On Dienstag, 12. Dezember 2006 19:40 +0100 Oliver Lehmann <[EMAIL PROTECTED]> wrote:
> Kern Sibbald wrote: > >> Not only is it more complicated, but it can be very expensive. Suppose >> you are restoring a million hard linked files. That could mean that >> you need you will need to keep a list that could amount to hundreds of >> millions of bytes (you need to keep at least forward links, the full >> path and the file, as well as certain of the file attributes). If you >> are restoring 5 or 10 million files, it could even be worse. In >> addition, if you have multiple files linked together (i.e. more than >> 2), it would add more complication because when hitting the second >> linked file in the list, the real file would already be marked >> immutable. You can solve that by having a doubly linked list in binary >> order, but then the computation costs go way up. > > Why not just keep a list of filenames which should have the IMMUTABLE > flag, and apply this flag after the whole backup is done to those files. If you read my post carefully, that is what I (or rather the NetBSD posting) proposed... ;-) As far as I understand the problem, all you need, is a dictionary/tree of paths for storing the attributes. Then you can set the attributes after the restore is finished. I'm not saying this is easy to implement, though. >> Off hand, I would say that the FreeBSD guys have worked themselves into >> a big hole. They have violated the rule that says that root can do >> anything. Using linux with MAC (mandatory access control), or one of the other dozen of similar implementations, basically does the same thing. The FreeBSD problem is probably just one of many which will arise with all those policy frameworks. It appears like nobody thought of the implications for backups and especially restores this causes. Maybe a command to mark a directory tree "restorable", i.e. so that all policies have no effect, would be nice. But that's just a wild guess... Regards, Georg ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users