Bacula-users

Re: [Bacula-users] Failure Backing Up Windows Client Machine

2014-02-25 16:26:12
Subject: Re: [Bacula-users] Failure Backing Up Windows Client Machine
From: Larry Kemp <Larry.Kemp AT usmetrotel DOT com>
To: John Drescher <drescherjm AT gmail DOT com>, Larry Kemp <Larry.Kemp AT usmetrotel DOT com>
Date: Tue, 25 Feb 2014 21:21:40 +0000

That’s awesome that yours worked. Sorry for the long email but I thought it was important to capture all the details.

 

I tried manually entering the command you list in a couple different ways:

--------------------------------------------------------------------------------------------------------------

C:\Program Files\Bacula>bacula-fd.exe -c bacula-fd.conf

 

C:\Program Files\Bacula>

25-Feb 15:30 bacula-fd: ERROR TERMINATION at /home/kern/bacula/k/bacula/src/lib/

parse_conf.c:918

Config error: Cannot open config file "C:\Documents and Settings\All Users\Application Data\Bacula/bacula-fd.conf": No such file or directory

 

 

 

C:\Program Files\Bacula>bacula-fd.exe -c ./bacula-fd.conf

 

C:\Program Files\Bacula>

25-Feb 15:32 bacula-fd: ERROR TERMINATION at /home/kern/bacula/k/bacula/src/lib/

lex.c:646

Config error: Cannot open included config file monitor_name@: No such file or directory

 

            : line 35, col 24 of file ./bacula-fd.conf

  Name = @monitor_name@

---------------------------------------------------------------------------------------------------------------

 

Entering Bacula-fd.exe –c ./bacula-fd.conf gave me a new result. It showed the error at line 35 column 24 of the Bacula-fd.conf file. Which I remember from earlier in this string somebody told me to comment that out….I just forgot as I installed a new version of the Bacula Client; as I have downloaded them all and start working my way through them to see if that helped.

 

So here is a screenshot of me opening the Bacula-fd.conf file in NotePad++ and commenting out lines 34 through 38.

 

Then I went back and re-ran the command bacul-fd.exe –c ./bacula-fd.conf

This time there was no error in the output, however in another shell window running netstat –t did not show the file daemon listening on any 9xxx sockets. See screenshot.

 

I then read that instead of entering netstat –n, to instead use the command netstat –an. Piping this through more like this: netstat –an | more gave me the following output for socket 9102…

Proto      Local Address   Foreign Address      State

TCP       0.0.0.0:9102    0.0.0.0:0            Listening

 

Then I ran the backup job from the Bacula server. Here was the console output:

Starting backup job bnspflu1-ts01 ..

Automatically selected Catalog: MyCatalog

Using Catalog "MyCatalog"

A job name must be specified.

The defined Job resources are:

     1: BackupClient1

     2: BackupCatalog

     3: RestoreFiles

     4: speedtest.usmetrotel.com

     5: dns3.usmetrocom.com

     6: masterdns.usmetrocom.com

     7: rwhois1.usmetrocom.com

     8: vmhost1.usmetrotel.com

     9: dns2.usmetrocom.com

    10: dns1.usmetrocom.com

    11: bnspflu1-ts01

Select Job resource (1-11): 11

Run Backup job

JobName:  bnspflu1-ts01

Level:    Full

Client:   bnspflu1-ts01-fd

FileSet:  bnspflu1-ts01

Pool:     File (From Job resource)

Storage:  File (From Job resource)

When:     2014-02-25 15:20:42

Priority: 10

OK to run? (yes/mod/no):

.. the backup job is now running. When complete, the results will be shown below ..

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Start Backup JobId 3669, Job=bnspflu1-ts01.2014-02-25_15.20.42_26

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Using Device "FileStorage"

25-Feb 15:20 bacula1.usmetrotel.com-sd JobId 3669: Volume "Vol0041" previously written, moving to end of data.

25-Feb 15:20 bacula1.usmetrotel.com-sd JobId 3669: Ready to append to end of Volume "Vol0041" size=16091971530

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: Generate VSS snapshots. Driver="VSS Win 2003", Drive(s)="C"

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669:      Could not stat "C:/bacula/*": ERR=The filename, directory name, or volume label syntax is incorrect.

 

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "System Writer", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "TermServLicensing", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "MSDEWriter", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "Registry Writer", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "COM+ REGDB Writer", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "Event Log Writer", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "IIS Metabase Writer", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "WMI Writer", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "BITS Writer", State: 0x1 (VSS_WS_STABLE)

25-Feb 15:20 bacula1.usmetrotel.com-sd JobId 3669: Job write elapsed time = 00:00:12, Transfer rate = 32  Bytes/second

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Bacula bacula1.usmetrotel.com-dir 5.0.3 (04Aug10): 25-Feb-2014 15:20:57

  Build OS:               i686-pc-linux-gnu redhat

  JobId:                  3669

  Job:                    bnspflu1-ts01.2014-02-25_15.20.42_26

  Backup Level:           Full

  Client:                 "bnspflu1-ts01-fd" 5.2.4 (18Jan12) Microsoft Windows Home ServerStandard Edition Service Pack 2 (build 3790),Cross-compile,Win32

  FileSet:                "bnspflu1-ts01" 2014-02-21 17:28:15

  Pool:                   "File" (From Job resource)

  Catalog:                "MyCatalog" (From Client resource)

  Storage:                "File" (From Job resource)

  Scheduled time:         25-Feb-2014 15:20:42

  Start time:             25-Feb-2014 15:20:44

  End time:               25-Feb-2014 15:20:57

  Elapsed time:           13 secs

  Priority:               10

  FD Files Written:       1

  SD Files Written:       1

  FD Bytes Written:       0 (0 B)

  SD Bytes Written:       390 (390 B)

  Rate:                   0.0 KB/s

  Software Compression:   None

  VSS:                    yes

  Encryption:             no

  Accurate:               no

  Volume name(s):         Vol0041

  Volume Session Id:      275

  Volume Session Time:    1385992415

  Last Volume Bytes:      16,091,972,356 (16.09 GB)

  Non-fatal FD errors:    1

  SD Errors:              0

  FD termination status:  OK

  SD termination status:  OK

  Termination:            Backup OK -- with warnings

 

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Begin pruning Jobs older than 10 days .

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: No Jobs found to prune.

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Begin pruning Jobs.

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: No Files found to prune.

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: End auto prune.

 

.. the backup did not complete successfully. Check the error message above for details.

 

 

Here was the email that my Bacula Director sent me:

-----Original Message-----
From: root AT bacula1.usmetrotel DOT com [mailto:root AT bacula1.usmetrotel DOT com] On Behalf Of Bacula
Sent: Tuesday, February 25, 2014 3:21 PM
To: larry.kemp AT usmetrotel DOT com
Subject: Bacula: Backup OK of bnspflu1-ts01-fd Full

 

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Start Backup JobId 3669, Job=bnspflu1-ts01.2014-02-25_15.20.42_26

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Using Device "FileStorage"

25-Feb 15:20 bacula1.usmetrotel.com-sd JobId 3669: Volume "Vol0041" previously written, moving to end of data.

25-Feb 15:20 bacula1.usmetrotel.com-sd JobId 3669: Ready to append to end of Volume "Vol0041" size=16091971530 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: Generate VSS snapshots. Driver="VSS Win 2003", Drive(s)="C"

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669:      Could not stat "C:/bacula/*": ERR=The filename, directory name, or volume label syntax is incorrect.

 

25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "System Writer", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "TermServLicensing", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "MSDEWriter", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "Registry Writer", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "COM+ REGDB Writer", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "Event Log Writer", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "IIS Metabase Writer", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "WMI Writer", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:51 bnspflu1-ts01-fd JobId 3669: VSS Writer (BackupComplete): "BITS Writer", State: 0x1 (VSS_WS_STABLE) 25-Feb 15:20 bacula1.usmetrotel.com-sd JobId 3669: Job write elapsed time = 00:00:12, Transfer rate = 32  Bytes/second 25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Bacula bacula1.usmetrotel.com-dir 5.0.3 (04Aug10): 25-Feb-2014 15:20:57

  Build OS:               i686-pc-linux-gnu redhat

  JobId:                  3669

  Job:                    bnspflu1-ts01.2014-02-25_15.20.42_26

  Backup Level:           Full

  Client:                 "bnspflu1-ts01-fd" 5.2.4 (18Jan12) Microsoft Windows Home ServerStandard Edition Service Pack 2 (build 3790),Cross-compile,Win32

  FileSet:                "bnspflu1-ts01" 2014-02-21 17:28:15

  Pool:                   "File" (From Job resource)

  Catalog:                "MyCatalog" (From Client resource)

  Storage:                "File" (From Job resource)

  Scheduled time:         25-Feb-2014 15:20:42

  Start time:             25-Feb-2014 15:20:44

  End time:               25-Feb-2014 15:20:57

  Elapsed time:           13 secs

  Priority:               10

  FD Files Written:       1

  SD Files Written:       1

  FD Bytes Written:       0 (0 B)

  SD Bytes Written:       390 (390 B)

  Rate:                   0.0 KB/s

  Software Compression:   None

  VSS:                    yes

  Encryption:             no

  Accurate:               no

  Volume name(s):         Vol0041

  Volume Session Id:      275

  Volume Session Time:    1385992415

  Last Volume Bytes:      16,091,972,356 (16.09 GB)

  Non-fatal FD errors:    1

  SD Errors:              0

  FD termination status:  OK

  SD termination status:  OK

  Termination:            Backup OK -- with warnings

 

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Begin pruning Jobs older than 10 days .

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: No Jobs found to prune.

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: Begin pruning Jobs.

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: No Files found to prune.

25-Feb 15:20 bacula1.usmetrotel.com-dir JobId 3669: End auto prune.

 

At least there are comms now between the Bacula server and the Windows 32bit client. Outstanding. Thank you so much for helping get me this far.

 

Now it seems like the list of files is not liked though now.

The email from the Bacula server stated the backup was a success but from the console it stated OK with warnings.

I do not see the file-set that I had listed which was a test directory named C:\bacula\

I tossed some Excel and other files in this directory and in the file-set I defined it as C:\bacula\*

Like this:

Also to see if the files were captured and pulled over to the Bacula Director/Storage server I went to the “Restore Baclup” section and saw no files listed to restore when I went to drill down to pick a specific file.

 

I am confident now my two remaining tasks are:

1.       Get a valid working windows file-set built that Bacula will accept, backup and not give me errors on.

2.       Then automate the startup of the File Daemon client on the Windows Server which I am confident I can do and then report back to the distro as to how I do it.

 

So since simply entering “C:\DIRECTORY\*” does not seem to jive….what do I need to do to define a valid file-set for my Windows machines that I need to backup?

 

LK  

 

From: John Drescher [mailto:drescherjm AT gmail DOT com]
Sent: Tuesday, February 25, 2014 3:28 PM
To: Larry Kemp
Cc: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Failure Backing Up Windows Client Machine

 

Mine bacula-5.2.10 x64 on windows 7 seems to support the -c parameter even though the help does not list that option

 

Here is what I just did from the command prompt:


C:\Program Files\Bacula>bacula-fd.exe  -c ./bacula-fd.conf

C:\Program Files\Bacula>bconsole -c  ./bconsole.conf
Connecting to Director 192.168.1.6:9101
1000 OK: fileserver-dir Version: 5.2.13 (19 February 2013)
Enter a period to cancel a command.
*st
Status available for:
     1: Director
     2: Storage
     3: Client
     4: All
Select daemon type for status (1-4): 3
The defined Client resources are:
     1: datastore0-fd
     2: datastore1-fd
     3: datastore2-fd
     4: datastore3-fd
     5: datastore4-fd
     6: fileserver-fd
     7: pogo1-fd
     8: vs_dns1-fd
     9: vs_ldap1-fd
    10: vs_ldap2-fd
    11: gateway-fd
    12: www-fd
    13: vs_svn-fd
    14: fs_1-fd
    15: dns-fd
    16: dns1-fd
    17: dev4-fd
    18: dev6-fd
    19: dicom-fd
    20: sysserv0-fd
    21: vs_db-fd
    22: radimglap9-fd
    23: radimgws52-fd
    24: radimgws53-fd
    25: radimgws55-fd
    26: radimgws58-fd
    27: radimgws61-fd
    28: radimgws64-fd
    29: radimgws68-fd
    30: radimgws74-fd
    31: radimgws11-fd
    32: radimgws12-fd
    33: radimgws79-fd
    34: radimgws76-fd
    35: radimgws75-fd
    36: radimgws67-fd
    37: radimgws87-fd
Select Client (File daemon) resource (1-37): 29
Connecting to Client radimgws68-fd at radimgws68.radimg.pitt.edu:9102

radimgws68-fd Version: 5.2.10 (28 June 2012)  VSS Linux Cross-compile Win64
Daemon started 25-Feb-14 15:26. Jobs: run=0 running=0.
Microsoft Windows 7 Enterprise Edition Service Pack 1 (build 7601), 64-bit
 Heap: heap=0 smbytes=17,172 max_bytes=17,319 bufs=54 max_bufs=55
 Sizeof: boffset_t=8 size_t=8 debug=0 trace=1
Running Jobs:
Director connected at: 25-Feb-14 15:26
No Jobs running.
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
======================================================================
 28103  Full   3,581,464    943.1 G  OK       02-Feb-12 05:42 radimgws68-full
====
You have messages.
*

 

On Tue, Feb 25, 2014 at 3:16 PM, John Drescher <drescherjm AT gmail DOT com> wrote:

 

 

On Tue, Feb 25, 2014 at 3:06 PM, Larry Kemp <Larry.Kemp AT usmetrotel DOT com> wrote:

 

No I did not see that option.

When I enter bacula-fd.exe /? I get this output.

Bacula-fd [/debug] [/service] [/run] [/kill] [/install] [/remove] [/help]

 

Entering bacula-fd.exe –c  in one dos-shell and then launching netstat –n in another does not show 91xx anything listening.

 

Running bBacula-fd.exe /debug returns this:

C:\Program Files\Bacula>bacula-fd.exe /debug

 

C:\Program Files\Bacula>

25-Feb 14:37 bacula-fd: ERROR TERMINATION at /home/kern/bacula/k/bacula/src/lib/

parse_conf.c:918

Config error: Cannot open config file "C:\Documents and Settings\All Users\Appli

cation Data\Bacula/bacula-fd.conf": No such file or directory

 

 

bacula-fd.exe /service gives no response, and running netstat –n shows no Bacula daemon listening.

 

bacula-fd.exe /run

C:\Program Files\Bacula>bacula-fd.exe /run

 

C:\Program Files\Bacula>

25-Feb 15:02 bacula-fd: ERROR TERMINATION at /home/kern/bacula/k/bacula/src/lib/

parse_conf.c:918

Config error: Cannot open config file "C:\Documents and Settings\All Users\Appli

cation Data\Bacula/bacula-fd.conf": No such file or directory

 

 

bacula-fd.exe /kill returns no response.

 

bacula-fd.exe /install gives me a graphical errors stat it could not be installed.

 

 

bacula-fd.exe /remove returns nothing

 

bacula-fd.exe /help shows this.

Bacula-fd [/debug] [/service] [/run] [/kill] [/install] [/remove] [/help]

 

 

 

I see. This is not how the windows client used to work. I am looking into this.

John




--
John M. Drescher

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
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>