[Bacula-users] Dummy Client for Admin Jobs?
Hello, everyone. So I just thought that it is kinda bothering me that I have to add information to an admin job that I am not even using... For instance I have a job thats only purpose is to do a wake on lan. I'd prefer not to choose one of the real clients for such jobs. It was simple to make a dummy fileset of no data at all, but can I do something like that for a client, too? Regards, Florian S. -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RegEx to filter every other file format
On 09/20/14 10:23, Heitor Faria wrote: Mr. Bacula Users, I'm trying to formulate a RegEx on fileset that excludes from backup everything expect a specific file type (.odt), just as curiosity (I know I could use WildFile + RegexFile Exclude .*). I've created a test directory with those files: root@hfaria-ThinkPad-T420:/test# ls heitor heitor.odd heitor.odt heitor.odx heitor.ott heitor.oxx odd odt odx I've tried this [1]: Regexfile = ^.*[^o][^d][^t]$; Exclude = yes; But no files are filtered. Then I tried this [2]: Regexfile = ^.*[^o][^d][^t]; Exclude = yes; And it filtered all files. Questions: what is the format of the file list RegexFile uses? Any hints on this? Might it not be more efficient to simply generate your Fileset dynamically from a script that does a find / -name \*.odt, instead of scanning the entire filesystem for everything and then discarding everything *but* .odt ? ? -- Phil Stracchino Babylon Communications ph...@caerllewys.net p...@co.ordinate.org Landline: 603.293.8485 -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Cannot find any appendable volumes - but has plenty of unused volumes
Hi bacula Version: 7.0.4 I get this message Cannot find any appendable volumes in my file based storage. After adding a label and running a job it writes: 22-Sep 14:27 bohr-dir JobId 93031: Begin pruning Jobs older than 6 months . 22-Sep 14:27 bohr-dir JobId 93031: No Jobs found to prune. 22-Sep 14:27 bohr-dir JobId 93031: Begin pruning Files. 22-Sep 14:27 bohr-dir JobId 93031: No Files found to prune. (why does it says 6 months?) In the Pool I have: Recycle = yes AutoPrune = yes Maximum Volume Bytes = 5368709120 Volume Retention = 2 weeks Maximum Volumes = 1520 #Recycle Oldest Volume = yes #Action On Purge = Truncate I tried to add the last two options but it did not change anything. I have also manually tried to prune, purge and delete unused volumes without success. When I look for volumes whic should not be in use I have plenty: # mysql bacula -e SELECT COUNT(*) FROM Media WHERE PoolId=3 AND MediaId NOT IN (SELECT MediaId FROM JobMedia); +--+ | COUNT(*) | +--+ | 328 | +--+ Is that query wrong? I am beginning to have too little disk space left so I cannot just keep adding volumes. Any help much appreciated. -- venlig hilsen Hans Schou MOC ⅍ Grønningen 19 st th 1270 København K http://moc.net/ tel:+4546923438 -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Cannot find any appendable volumes - but has plenty of unused volumes
Mr. Hans, I get this message Cannot find any appendable volumes in my file based storage. This is pretty obvious but it's good to make sure: 1. Are you submitting jobs to the same pool that you have the appendable volumes? 2. Do you have Appendable volumes in this pool? After adding a label and running a job it writes: 22-Sep 14:27 bohr-dir JobId 93031: Begin pruning Jobs older than 6 months . 22-Sep 14:27 bohr-dir JobId 93031: No Jobs found to prune. 22-Sep 14:27 bohr-dir JobId 93031: Begin pruning Files. 22-Sep 14:27 bohr-dir JobId 93031: No Files found to prune. (why does it says 6 months?) This message concerns another kind of retention that just affect Bacula Catalog Indexes. Don't confuse it with the volume retention. In the Pool I have: Recycle = yes AutoPrune = yes Maximum Volume Bytes = 5368709120 Volume Retention = 2 weeks Maximum Volumes = 1520 #Recycle Oldest Volume = yes #Action On Purge = Truncate I tried to add the last two options but it did not change anything. I have also manually tried to prune, purge and delete unused volumes without success. Anyhow, list media pool=pool_name output and the full job log are necessary to provide a diagnosis. Regards, -- Heitor Medrado de Faria | Need Bacula training? 10% discount coupon code at Udemy: bacula-users https://www.udemy.com/bacula-backup-software/?couponCode=bacula-users +55 61 2021-8260 +55 61 8268-4220 Site: www.bacula.com.br Facebook: heitor.faria http://www.facebook.com/heitor.faria Gtalk: heitorfa...@gmail.com -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] autochanger woes
Every time that you reboot your linux server, udev links up the physical devices. They will not necessarily be the same each time which is what you are seeing. You have to use a persistent name in order to keep the same devices. There are a couple of ways to do that. Use the long paths found in /dev/tape/by-id or create your own rules with friendly symlinks to names that you use in your Bacula configuration. Even with one autochanger, you will want to include that and all of your tape devices. lsscsi shows what you currently have. scsi_id —whitelisted —device=/dev/st0 -- repeat for each tape device and your autochanger device (use /dev/sg#) – this gets you the unique scsi id to be used in the udev rules In your udev rules make sure that you use the nst* reference for tape, it is the no-rewind device. Generally the rules file goes in /etc/udev/rules.d (may be different for your distro). Name it something meaningful to you. Use unique names, not generic ones like Drive1. Here are a couple of examples for entries – substitute your scsi id output where RESULT==, I like to use * as a catchall for the scsi id: KERNEL==sg*, SUBSYSTEM==scsi_generic, PROGRAM=/sbin/scsi_id --whitelisted --replace-whitespace /dev/$name, RESULT==3221f0090a5004532, ATTRS{type}==8, SYMLINK+=mychanger -- your unique changer name KERNEL==nst*[0-9], SUBSYSTEM==scsi_tape, PROGRAM=/sbin/scsi_id --whitelisted --replace-whitespace /dev/$name, RESULT==*321110090a5004532*, SYMLINK+=mytape-0 -- your unique tape drive name for your first drive – repeat for remaining drives There are commands to play with when manipulating the rules and testing, however, I recommend rebooting – it's the final verification. Once you use the command line commands (mtx and mt) and find they behave consistently, then get Bacula involved. Patti Clark Linux System Administrator RD Systems Support Oak Ridge National Laboratory From: RAT rober...@netzero.netmailto:rober...@netzero.net Date: Saturday, September 20, 2014 at 5:19 PM To: rsvanc...@gmail.commailto:rsvanc...@gmail.com rsvanc...@gmail.commailto:rsvanc...@gmail.com, bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] autochanger woes I think you're correct. Although I'm not sure exactly how to remedy. [root@bacula1 sbin]# vi /usr/libexec/bacula/mtx-changer [root@bacula1 sbin]# ./bconsole Connecting to Director localhost:9101 1000 OK: bacula-dir Version: 5.2.13 (19 February 2013) Enter a period to cancel a command. *label barcodes Automatically selected Catalog: MyCatalog Using Catalog MyCatalog The defined Storage resources are: 1: File 2: DL4000 Select Storage resource (1-2): 2 Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... Enter autochanger drive[0]: 4 Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... 3306 Issuing autochanger slots command. Device Drive1 has 48 slots. Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... 3306 Issuing autochanger list command. The following Volumes will be labeled: Slot Volume == 10 47L6 11 38L6 14 39L6 15 53L6 18 23L6 19 59L6 Do you want to label these Volumes? (yes|no): yes Defined Pools: 1: Default 2: File 3: Scratch Select the Pool (1-3): 3 Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... Sending label command for Volume 47L6 Slot 10 ... 3307 Issuing autochanger unload slot 19, drive 0 command. 3995 Bad autochanger unload slot 19, drive 0: ERR=Child exited with code 1 Results=Unloading drive 0 into Storage Element 19...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Illegal Request mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 53 mtx: Request Sense: Additional Sense Qualifier = 03 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 256 to 4114 Failed Label command failed for Volume 47L6. Sending label command for Volume 38L6 Slot 11 ... 3307 Issuing autochanger unload slot 19, drive 0 command. 3995 Bad autochanger unload slot 19, drive 0: ERR=Child exited with code 1 Results=Unloading drive 0 into Storage Element 19...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Illegal Request mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 53 mtx: Request Sense: Additional Sense Qualifier = 03 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 256 to 4114 Failed
Re: [Bacula-users] autochanger woes
Thanks Patti. I will begin experimenting with it. Robert Threet http://yesistilluseperl.blogspot.com/ -- Original Message -- From: Clark, Patricia A. clar...@ornl.gov To: bacula-users@lists.sourceforge.net bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] autochanger woes Date: Mon, 22 Sep 2014 15:40:24 + Every time that you reboot your linux server, udev links up the physical devices. They will not necessarily be the same each time which is what you are seeing. You have to use a persistent name in order to keep the same devices. There are a couple of ways to do that. Use the long paths found in /dev/tape/by-id or create your own rules with friendly symlinks to names that you use in your Bacula configuration. Even with one autochanger, you will want to include that and all of your tape devices. lsscsi shows what you currently have. scsi_id —whitelisted —device=/dev/st0 -- repeat for each tape device and your autochanger device (use /dev/sg#) – this gets you the unique scsi id to be used in the udev rules In your udev rules make sure that you use the nst* reference for tape, it is the no-rewind device. Generally the rules file goes in /etc/udev/rules.d (may be different for your distro). Name it something meaningful to you. Use unique names, not generic ones like Drive1. Here are a couple of examples for entries – substitute your scsi id output where RESULT==, I like to use * as a catchall for the scsi id: KERNEL==sg*, SUBSYSTEM==scsi_generic, PROGRAM=/sbin/scsi_id --whitelisted --replace-whitespace /dev/$name, RESULT==3221f0090a5004532, ATTRS{type}==8, SYMLINK+=mychanger -- your unique changer name KERNEL==nst*[0-9], SUBSYSTEM==scsi_tape, PROGRAM=/sbin/scsi_id --whitelisted --replace-whitespace /dev/$name, RESULT==*321110090a5004532*, SYMLINK+=mytape-0 -- your unique tape drive name for your first drive – repeat for remaining drives There are commands to play with when manipulating the rules and testing, however, I recommend rebooting – it's the final verification. Once you use the command line commands (mtx and mt) and find they behave consistently, then get Bacula involved. Patti Clark Linux System Administrator RD Systems Support Oak Ridge National Laboratory From: RAT rober...@netzero.netmailto:rober...@netzero.net Date: Saturday, September 20, 2014 at 5:19 PM To: rsvanc...@gmail.commailto:rsvanc...@gmail.com rsvanc...@gmail.commailto:rsvanc...@gmail.com, bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] autochanger woes I think you're correct. Although I'm not sure exactly how to remedy. [root@bacula1 sbin]# vi /usr/libexec/bacula/mtx-changer [root@bacula1 sbin]# ./bconsole Connecting to Director localhost:9101 1000 OK: bacula-dir Version: 5.2.13 (19 February 2013) Enter a period to cancel a command. *label barcodes Automatically selected Catalog: MyCatalog Using Catalog MyCatalog The defined Storage resources are: 1: File 2: DL4000 Select Storage resource (1-2): 2 Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... Enter autochanger drive[0]: 4 Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... 3306 Issuing autochanger slots command. Device Drive1 has 48 slots. Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... 3306 Issuing autochanger list command. The following Volumes will be labeled: Slot Volume == 10 47L6 11 38L6 14 39L6 15 53L6 18 23L6 19 59L6 Do you want to label these Volumes? (yes|no): yes Defined Pools: 1: Default 2: File 3: Scratch Select the Pool (1-3): 3 Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ... Sending label command for Volume 47L6 Slot 10 ... 3307 Issuing autochanger unload slot 19, drive 0 command. 3995 Bad autochanger unload slot 19, drive 0: ERR=Child exited with code 1 Results=Unloading drive 0 into Storage Element 19...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Illegal Request mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 53 mtx: Request Sense: Additional Sense Qualifier = 03 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 256 to 4114 Failed Label command failed for Volume 47L6. Sending label command for Volume 38L6 Slot 11 ... 3307 Issuing autochanger unload slot 19, drive 0 command. 3995 Bad autochanger unload slot 19, drive 0: ERR=Child exited with code 1 Results=Unloading drive 0 into Storage Element 19...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense
Re: [Bacula-users] RegEx to filter every other file format
On Sat, 20 Sep 2014 11:23:09 -0300, Heitor Faria said: Mr. Bacula Users, I'm trying to formulate a RegEx on fileset that excludes from backup everything expect a specific file type (.odt), just as curiosity (I know I could use WildFile + RegexFile Exclude .*). I've created a test directory with those files: root@hfaria-ThinkPad-T420:/test# ls heitor heitor.odd heitor.odt heitor.odx heitor.ott heitor.oxx odd odt odx I've tried this [1]: Regexfile = ^.*[^o][^d][^t]$; Exclude = yes; But no files are filtered. Then I tried this [2]: Regexfile = ^.*[^o][^d][^t]; Exclude = yes; And it filtered all files. Questions: what is the format of the file list RegexFile uses? Any hints on this? Can you post the whole fileset? That RegexFile could do different things depending on the other options. Also, does filtered all files mean than the backup contains 0 files? __Martin -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RegEx to filter every other file format
Hi, I did some tests, and it worked for me with linux filesystem. When I tried the same FileSet definition with Windows, it does the reported by Heitor. Regards, Ana On Sat, Sep 20, 2014 at 11:23 AM, Heitor Faria hei...@bacula.com.br wrote: Mr. Bacula Users, I'm trying to formulate a RegEx on fileset that excludes from backup everything expect a specific file type (.odt), just as curiosity (I know I could use WildFile + RegexFile Exclude .*). I've created a test directory with those files: root@hfaria-ThinkPad-T420:/test# ls heitor heitor.odd heitor.odt heitor.odx heitor.ott heitor.oxx odd odt odx I've tried this [1]: Regexfile = ^.*[^o][^d][^t]$; Exclude = yes; But no files are filtered. Then I tried this [2]: Regexfile = ^.*[^o][^d][^t]; Exclude = yes; And it filtered all files. Questions: what is the format of the file list RegexFile uses? Any hints on this? Regards, -- Heitor Medrado de Faria | Need Bacula training? 10% discount coupon code at Udemy: bacula-users https://www.udemy.com/bacula-backup-software/?couponCode=bacula-users +55 61 2021-8260 +55 61 8268-4220 Site: www.bacula.com.br Facebook: heitor.faria http://www.facebook.com/heitor.faria Gtalk: heitorfa...@gmail.com -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] RegEx to filter every other file format
On 09/22/2014 01:35 PM, Ana Emília M. Arruda wrote: Hi, I did some tests, and it worked for me with linux filesystem. When I tried the same FileSet definition with Windows, it does the reported by Heitor. Have you tried [^oO][^dD][^tT] ? -- Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu signature.asc Description: OpenPGP digital signature -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Cannot find any appendable volumes - but has plenty of unused volumes
Hans, Everything looks right, but I'm still not sure if your volume automatic recycling is working for SanFullPool yet (probably not), but you have another jobs for another pool where recycling is working: Recycled volume admhuset-1447, Admhuset. Can we compare both pools configurations? Regards, On Mon, Sep 22, 2014 at 4:00 PM, Hans Schou h...@moc.net wrote: On 2014-09-22 20:40, Heitor Faria wrote: Hans: can you send the full job log? It is huge - here is the last part from /var/log/bacula/ Btw: if you want to ignore retention the option is: Purge Oldest Volume, not: Recycle Oldest Volume. Thanks . /hans -- Heitor Medrado de Faria | Need Bacula training? 10% discount coupon code at Udemy: bacula-users https://www.udemy.com/bacula-backup-software/?couponCode=bacula-users +55 61 2021-8260 +55 61 8268-4220 Site: www.bacula.com.br Facebook: heitor.faria http://www.facebook.com/heitor.faria Gtalk: heitorfa...@gmail.com -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Cannot find any appendable volumes - but has plenty of unused volumes
On 2014-09-22 21:19, Heitor Faria wrote: Hans, Everything looks right, but I'm still not sure if your volume automatic recycling is working for SanFullPool yet (probably not), That is the problem - I guess. but you have another jobs for another pool where recycling is working: Recycled volume admhuset-1447, Admhuset. Can we compare both pools configurations? I have one director and 3 SD. Admhuset is another SD. Here is the 2 Pool { Name = SanFullPool Pool Type = Backup Next Pool = RemoteTape Recycle = yes AutoPrune = yes Maximum Volume Bytes = 5368709120 Volume Retention = 2 weeks LabelFormat = san-full Maximum Volumes = 1520 Storage = san-full #Recycle Oldest Volume = yes #Action On Purge = Truncate } Pool { Name = Admhuset Pool Type = Backup Next Pool = RemoteTape Recycle = yes AutoPrune = yes Maximum Volume Bytes = 5368709120 Volume Retention = 7 days LabelFormat = admhuset- Maximum Volumes = 180 Storage = Admhuset } -- venlig hilsen Hans Schou -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Windows client always backs up zero byte files and empty directories
On Thu, 18 Sep 2014 20:44:51 -0400, Dan Ragle said: Think I'm missing something in my setup here, but don't know what. I'm running director and sd version 7.0.5 on a CentOS box, and backing up (among others) a Windows Vista Home Premium client (which is running 5.2.10). I'm finding that the incremental saves for the Windows client ALWAYS include all the empty directories and zero-byte files, whether they've changed or not. Looking at the bat/brestore console, I can see for example that a certain zero-byte file is listed in every incremental backup, and that it has the same date and Chksum in every entry. I'm using accurate mode backups, with accurate=pinsmc1: FileSet { Name = Windows Include { Options { compression=GZIP signature=SHA1 accurate=pinsmc1 checkfilechanges=yes } ... with the includes and excludes pretty normal (a few * wildcards in the excludes, but nothing fancy). I'm also backing up a few Linux clients and a MacOS client with the same director and not noticing this behavior with those (two of the linux clients are 7.0.5, and the other one as well as the Mac client is 5.2.6). Anything obvious jumping out at anybody? I can provide more info if needed, but figured I'd start with some basics. You could try setting the debug level to 100 in the client (setdebug client=Windows level=100 trace=1) to see what it is comparing. You could also look at the lstat column for those files in the file table to see what differs (see .bvfs_decode_lstat at http://www.bacula.org/7.0.x-manuals/en/main/New_Features_in_7_0_0.html#SECTION003129000). __Martin Thanks, Martin. I'll try the setdebug on tonight's backup and see what comes of it. In the meantime, I'm not sure if the .bvfs commands will shed any new light on the issue, since the file simply shows the same lstat on each backup: * .bvfs_versions client=joshua-fd pathid=19570 fnid=36065 jobid=76 19570 36065 503052 16 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Full_0016 0 19570 36065 561670 22 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00220 19570 36065 587296 28 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00280 19570 36065 590294 34 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00340 19570 36065 595122 40 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00400 19570 36065 605010 46 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00460 19570 36065 606812 52 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00520 19570 36065 609242 60 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00580 19570 36065 614435 66 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00630 19570 36065 615289 70 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00670 19570 36065 617073 76 A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A MwUJerN1ZDJwRrMXpKcXmVly9OL8 Inc_00730 * bvfs_decode_lstat lstat=A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A st_nlink=1 st_mode=33279 st_uid=0 st_gid=0 st_size=0 st_blocks=0 st_ino=0 st_ctime=1240329680 st_mtime=1240329680 st_mtime=1240329680 st_dev=0 LinkFI=0 Ok, so presumably it's the SHA1 chksum that it doesn't like: joshua-fd: filed/accurate.c:236-0 add fname=C:/Users/Dan/Perl/from_linux/comments/block/block_ip.txt lstat=A A IH/ B A A A A A A BJ7e3Q BJ7e3Q BJ7e3Q A A M delta_seq=0 chksum=wUJerN1ZDJwRrMXpKcXmVly9OL8 ... joshua-fd: filed/accurate.c:82-0 lookup C:/Users/Dan/Perl/from_linux/comments/block/block_ip.txt ok joshua-fd: filed/verify.c:297-0 === digest_file joshua-fd: filed/accurate.c:453-0 C:/Users/Dan/Perl/from_linux/comments/block/block_ip.txt SHA1 chksum diff. Cat: wUJerN1ZDJwRrMXpKcXmVly9OL8 File: 2jmj7l5rSw0yVb/vlWAYkK/YBwk joshua-fd: findlib/bfile.c:529-0 === NO plugin joshua-fd: findlib/bfile.c:621-0 Read CreateFileW=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy21\Users\Dan\Perl\from_linux\comments\block\block_ip.txt So I guess I'll just try it with MD5's for that client on my next scheduled full backup and see what happens after that. Cheers, Dan -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer