Hello Victor, You seem to be running a very old Bacula, and in Bacula version 5.2.x we corrected some minor bugs with Accurate mode, which could well the cause of the problems you are seeing.
I recommend you upgrade. Best regards, Kern On 04/04/2012 05:01 PM, Victor Hugo dos Santos wrote: > On Wed, Apr 4, 2012 at 4:34 AM, Kern Sibbald<k...@sibbald.com> wrote: >> On 04/04/2012 03:48 AM, Victor Hugo dos Santos wrote: >>> Hi, >>> >>> I was reading the bacula manual to find a configuration to allow that >>> bacula only consider the MD5SuM of file to check if is or not >>> necessary backup it. >>> but, apparently bacula don't have this options, and always see the >>> st_mtime and the st_ctime of files. >>> >>> (yes.. I see the option "mtimeonly=yesno" in the manual, but it not work >>> !!!) >>> >>> in others words, can I configure bacula, to compare the "only" the >>> MD5SUM of file and ignore the creation and modification date ?? >>> >> Please look at the "Accurate" command. > Hello Kern, > > I enable the accurate option for this job.. but bacula backup all file yet... > my configuration is: > > ============================= > Job { > Name = "prueba" > JobDefs = "DefaultJob" > Client = webserver-fd > FileSet = "datos-comunes" > Accurate = yes > } > > FileSet { > Name = "datos-comunes" > Include { > Options { signature = MD5; compression=GZIP5; accurate=5 } > File = /home/uapplicatta/respaldo/ > } > } > ============================= > > running bacula-fd in debug mode, I get: > > =========================== > sudo bacula-fd -c /etc/bacula/bacula-fd.conf -d 200 -f > [...] > webserver-fd: job.c:273-0 Executing JobId= command. > webserver-fd: job.c:495-10269 JobId=10269 > Auth=PKHA-AAPE-LHJK-IHCD-NLJN-KPEB-MCDE-NDFC > webserver-fd: fd_plugins.c:653-10269 plugin list is NULL > webserver-fd: job.c:257-10269<dird: fileset vss=1 > webserver-fd: job.c:273-10269 Executing fileset command. > webserver-fd: job.c:753-10269 I > webserver-fd: job.c:753-10269 O MZ5C5: > webserver-fd: job.c:753-10269 N > webserver-fd: job.c:753-10269 F /home/uapplicatta/respaldo/ > webserver-fd: job.c:753-10269 N > webserver-fd: job.c:753-10269 N > webserver-fd: job.c:257-10269<dird: level = accurate_incremental mtime_only=0 > webserver-fd: job.c:273-10269 Executing level = command. > webserver-fd: job.c:1270-10269 level_cmd: level = accurate_incremental > mtime_only=0 > webserver-fd: job.c:257-10269<dird: level = since_utime 1333550745 > mtime_only=0 > webserver-fd: job.c:273-10269 Executing level = command. > webserver-fd: job.c:1270-10269 level_cmd: level = since_utime > 1333550745 mtime_only=0 > webserver-fd: job.c:1309-10269 since_time=1333550745 > webserver-fd: job.c:1330-10269 Dirtime=1333550811079403 > FDtime=1333550811150389 > webserver-fd: job.c:1332-10269 rt=251 adj=70861 > [...] > webserver-fd: job.c:1475-10269 Connection OK to SD. > webserver-fd: job.c:1484-10269 Authenticated with SD. > webserver-fd: job.c:257-10269<dird: accurate files=25 > webserver-fd: job.c:273-10269 Executing accurate command. > webserver-fd: htable.c:78-10269 malloc buf=7f139505f038 size=1000000 > rem=999976 > webserver-fd: accurate.c:224-10269 add > fname=</home/uapplicatta/respaldo/> lstat=PsB DAAM EHt C A A A BAA BAA > I BPfFnZ BPfFih BPfFih A A E chksum= > webserver-fd: accurate.c:224-10269 add > fname=</home/uapplicatta/respaldo/turismomontepatria.gz> lstat=PsB > DAAT IGk B A A A xlZ BAA GQ BPfF1F BPfF6K BPfF6K A A E > chksum=3XcCjH/fRaf1bg2gHlGl+g > webserver-fd: accurate.c:224-10269 add > fname=</home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz> > lstat=PsB DAAR IGk B A A A NqpM BAA BtY BPfF1F BPfF6H BPfF6H A A E > chksum=hlKiRJb3OPAkqSI62PiD+A > webserver-fd: accurate.c:224-10269 add > fname=</home/uapplicatta/respaldo/app_turismo_valdivia.gz> lstat=PsB > DAAO IGk B A A A GXwz BAA zA BPfF1F BPfF6F BPfF6F A A E > chksum=UQJo3+r109/6fNkpbj+/Xg > webserver-fd: accurate.c:224-10269 add > fname=</home/uapplicatta/respaldo/turismo_montepatria_bak.gz> > lstat=PsB DAAQ IGk B A A A NkOM BAA Bso BPfF1F BPfF6G BPfF6G A A E > chksum=77jQJtj/79XFD4gAGazYEQ > webserver-fd: accurate.c:224-10269 add > fname=</home/uapplicatta/respaldo/turismo_montepatria.gz> lstat=PsB > DAAP IGk B A A A NmNR BAA Bs4 BPfF1F BPfF6G BPfF6G A A E > chksum=lnZROsSjqrqyXhyqjCn8Pw > webserver-fd: accurate.c:224-10269 add > fname=</home/uapplicatta/respaldo/turismo_valdivia.gz> lstat=PsB DAAS > IGk B A A A Fq0c BAA tY BPfF1G BPfF6K BPfF6K A A E > chksum=aCxtSivOJ++sGbHS8IMSnw > webserver-fd: accurate.c:525-10269 Heap: heap=270,336 > smbytes=1,016,990 max_bytes=1,016,990 bufs=74 max_bufs=75 > webserver-fd: job.c:257-10269<dird: backup > webserver-fd: job.c:273-10269 Executing backup command. > webserver-fd: job.c:1532-10269 begin backup ff=104cef8 > webserver-fd: job.c:1541-10269 filed>dird: 2000 OK backup > webserver-fd: job.c:1547-10269>stored: append open session > webserver-fd: job.c:1552-10269<stored: 3000 OK open ticket = 275 > webserver-fd: job.c:1557-10269 Got Ticket=275 > webserver-fd: job.c:1567-10269>stored: append data 275 > webserver-fd: job.c:1572-10269<stored: append data 275 > webserver-fd: job.c:1984-10269 3000 OK data > webserver-fd: pythonlib.c:227-10269 No startup module. > webserver-fd: job.c:1621-10269 begin blast ff=104cef8 > webserver-fd: find.c:92-10269 Enter set_find_options() > webserver-fd: find.c:95-10269 Leave set_find_options() > webserver-fd: find.c:101-10269 Enter set_find_changed_function() > webserver-fd: find.c:200-10269 F /home/uapplicatta/respaldo/ > webserver-fd: backup.c:1226-10269 No strip for /home/uapplicatta/respaldo/ > webserver-fd: accurate.c:81-10269 lookup</home/uapplicatta/respaldo/> ok > webserver-fd: backup.c:1226-10269 No strip for > /home/uapplicatta/respaldo/turismomontepatria.gz > webserver-fd: accurate.c:81-10269 lookup > </home/uapplicatta/respaldo/turismomontepatria.gz> ok > webserver-fd: accurate.c:348-10269 > /home/uapplicatta/respaldo/turismomontepatria.gz st_mtime differs > webserver-fd: backup.c:333-10269 FT_REG saving: > /home/uapplicatta/respaldo/turismomontepatria.gz > webserver-fd: backup.c:424-10269 bfiled: sending > /home/uapplicatta/respaldo/turismomontepatria.gz to stored > webserver-fd: crypto.c:600-10269 crypto_digest_new jcr=104c758 > webserver-fd: backup.c:1226-10269 No strip for > /home/uapplicatta/respaldo/turismomontepatria.gz > webserver-fd: bfile.c:900-10269 open file > /home/uapplicatta/respaldo/turismomontepatria.gz > webserver-fd: backup.c:1023-10269 Send data to SD len=65562 > webserver-fd: backup.c:1023-10269 Send data to SD len=65562 > webserver-fd: backup.c:1023-10269 Send data to SD len=65562 > webserver-fd: backup.c:1023-10269 Send data to SD len=6500 > webserver-fd: backup.c:1226-10269 No strip for > /home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz > webserver-fd: accurate.c:81-10269 lookup > </home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz> ok > webserver-fd: accurate.c:348-10269 > /home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz > st_mtime differs > webserver-fd: backup.c:333-10269 FT_REG saving: > /home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz > webserver-fd: backup.c:424-10269 bfiled: sending > /home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz to stored > webserver-fd: crypto.c:600-10269 crypto_digest_new jcr=104c758 > webserver-fd: backup.c:1226-10269 No strip for > /home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz > webserver-fd: bfile.c:900-10269 open file > /home/uapplicatta/respaldo/turismo_montepatria_respaldo.gz > webserver-fd: backup.c:1023-10269 Send data to SD len=61887 > webserver-fd: backup.c:1023-10269 Send data to SD len=65557 > [...] > =========================== > > the MD5SUM of files is the same, the only change is the date (I run > the first backup, so, I copy the same file to backup directory > overwriting the old file with the same name and content). > > the output of job is: > > =========================== > 04-Apr 10:46 bacula-dir JobId 10269: Bacula bacula-dir 5.0.1 > (24Feb10): 04-Apr-2012 10:46:52 > Build OS: i486-pc-linux-gnu ubuntu 10.04 > JobId: 10269 > Job: DB-WEB.2012-04-04_10.46.48_43 > Backup Level: Incremental, since=2012-04-04 10:45:45 > Client: "webserver-fd" 5.0.1 (24Feb10) > x86_64-pc-linux-gnu,ubuntu,10.04 > FileSet: "Dump MySQL FileSet" 2012-04-03 20:20:55 > Pool: "Diario-Incremental" (From Job IncPool override) > Catalog: "MyCatalog" (From Client resource) > Storage: "File" (From Job resource) > Scheduled time: 04-Apr-2012 10:46:47 > Start time: 04-Apr-2012 10:46:51 > End time: 04-Apr-2012 10:46:52 > Elapsed time: 1 sec > Priority: 10 > FD Files Written: 6 > SD Files Written: 6 > FD Bytes Written: 14,053,230 (14.05 MB) > SD Bytes Written: 14,054,034 (14.05 MB) > Rate: 14053.2 KB/s > Software Compression: None > VSS: no > Encryption: no > Accurate: yes > Volume name(s): diario-incremental-1389 > Volume Session Id: 275 > Volume Session Time: 1331249258 > Last Volume Bytes: 14,065,289 (14.06 MB) > Non-fatal FD errors: 0 > SD Errors: 0 > FD termination status: OK > SD termination status: OK > Termination: Backup OK > =========================== > > > in the DB the md5 is the same too: > > =========================== > bacula=# select File.JobId, File.FileId, > Filename.Name,Path.Path,File.LStat,File.MD5 from File > join Filename using (FilenameId) > join Path using (PathId) where File.JobId in (10267,10268,10269) and > Filename.Name = 'turismo_montepatria.gz'; > jobid | fileid | name | path > | lstat | > md5 > -------+-----------+------------------------+-----------------------------+--------------------------------------------------------------+------------------------ > 10267 | 184346092 | turismo_montepatria.gz | > /home/uapplicatta/respaldo/ | PsB DAAP IGk B A A A NmNR BAA Bs4 BPfFzq > BPfF0e BPfF0e A A E | lnZROsSjqrqyXhyqjCn8Pw > 10268 | 184346098 | turismo_montepatria.gz | > /home/uapplicatta/respaldo/ | PsB DAAP IGk B A A A NmNR BAA Bs4 BPfF1F > BPfF6G BPfF6G A A E | lnZROsSjqrqyXhyqjCn8Pw > 10269 | 184346104 | turismo_montepatria.gz | > /home/uapplicatta/respaldo/ | PsB DAAP IGk B A A A NmNR BAA Bs4 BPfF7F > BPfF6+ BPfF6+ A A E | lnZROsSjqrqyXhyqjCn8Pw > (3 rows) > =========================== > > the only diference is the lstat above. > > > but every time, the resulted is the same (6 files and 14MB backuped). > > maybe the version of bacula (5.0.X) ?? > > thanks for any help > ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel