Bacula-users

[Bacula-users] Duplicate backup of file created by an RunScript

2014-05-02 10:04:47
Subject: [Bacula-users] Duplicate backup of file created by an RunScript
From: Geert De Pecker <gedp AT sofico DOT be>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 2 May 2014 15:42:31 +0200
Hi,

For some systems, we need to run backup script that are specific to the application. These scripts will make eg a dump file to
a backup directory. This dump file should be in the bacula backup.

So far so good and the file is indeed nicely on the backup. However, in some cases, also the dumpfile of the day before is backed up by
bacula. Eg:

bacula> bls $(pwd)/doggie.INC_20140501_1900_2280
bls JobId 2280: -rw-r----- 1 root root 3335137280 2014-05-01 19:01:26 /data/backup/20140501-190126-078.tar
bacula> bls $(pwd)/doggie.INC_20140430_1900_2270
bls JobId 2270: -rw-r----- 1 root root 3332945920 2014-04-30 19:01:22 /data/backup/20140430-190122-991.tar
bls JobId 2270: -rw-r----- 1 root root 3330344960 2014-04-29 19:01:22 /data/backup/20140429-190122-445.tar <--
bacula> bls $(pwd)/doggie.INC_20140429_1900_2260
bls JobId 2260: -rw-r----- 1 root root 3328706560 2014-04-28 19:01:27 /data/backup/20140428-190127-260.tar <----
bls JobId 2260: -rw-r----- 1 root root 3330344960 2014-04-29 19:01:22 /data/backup/20140429-190122-445.tar <--
bacula> bls $(pwd)/doggie.INC_20140428_1900_2250
bls JobId 2250: -rw-r----- 1 root root 3328706560 2014-04-28 19:01:27 /data/backup/20140428-190127-260.tar <----
bls JobId 2250: -rw-r----- 1 root root 3327559680 2014-04-27 19:01:26 /data/backup/20140427-190126-249.tar

Reading on the priciple used to determine if a file is new or not: when making an incremental, mtime is checked against the time of the START
of the previous inremental. This explains this behaviour.

I can remedy this by not using the RunScript for stuff like this, but putting them in a crontab. It is however nice to have this in bacula ...

Is there some way to tell bacula that not the START of the job, but the timestamp AFTER the finished RunScript should be taken?

Or should I use the "Accurate" option?

Thanks,
Geert

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] Duplicate backup of file created by an RunScript, Geert De Pecker <=