Re: [Bacula-users] How does Bacula back-up files?
2011-05-13 09:01:32
Excerpts from obviously's message of Fri May 13 08:32:05 -0400 2011:
> So my question, how does Bacula do this? Cause I remove the file
> during the backup and flush the cache frequently...
Bacula holds the file open so even though it's removed as far as other
processes are concerned[1], the kernel doesn't free it until the
reference count drops to 0 (eg: when bacula calls fclose()). These
are standard unix/posix filesystem semantics.
If you were to run lsof -p $pidofbacula-fd, you'd seen an entry for
that file with '(deleted)' beside it.
Flushing the cache won't affect this.
Thanks
-Ben
[1] On many systems it is possible to restore this file as long as
some process holds it open:
http://prefetch.net/blog/index.php/2009/02/25/how-to-undelete-any-open-deleted-file-on-linux-solaris/
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|