Bacula-users

Re: [Bacula-users] How does Bacula back-up files?

2011-05-13 09:01:32
Subject: Re: [Bacula-users] How does Bacula back-up files?
From: Christian Manal <moenoel AT informatik.uni-bremen DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 13 May 2011 14:58:11 +0200
Am 13.05.2011 14:32, schrieb obviously:
> Hello,
> 
> I have a question I can't solve...
> 
> The is the situation:
> 
> I create a file with: dd if=/dev/urandom of=test.bin bs=10M count=300
> This gives me a file of 3GB.
> I check it's MD5 with md5sum test.bin
> 
> I clear my cache with echo 3 > /proc/sys/vm/drop_caches.
> 
> I check my chache with free -m.
> 
> I start a backup with Bacula of only 1 file, namely test.bin
> 
> Again, I flush the cache and when the back-up job is starting I remove the 
> test.bin file on the server.
> 
> And Bacula doens't react at all, it keeps backing up the file like it is 
> still there.
> 
> The backup finishes with no warnings, even it is removed during the backup.
> 
> I restore the test.bin file from tape and checks the md5 of it, and strangely 
> the md5sum is the same... 
> 
> So my question, how does Bacula do this? Cause I remove the file during the 
> backup and flush the cache frequently...
> 
> I hope you guys understand my q, my english is realy bad :) excuse me...
> 

Hi,

"deleting" usually just unlinks a file. You don't see it in the
filesystem anymore but it is still physically on the disk. And AFAIK the
space it is consuming isn't released until the last file handle
accessing it (in this case bacula) is closed. So it's nothing bacula
specific.


Regards,
Christian Manal

------------------------------------------------------------------------------
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