Bacula-users

Re: [Bacula-users] Glitches in new Windows download file - remote drives

2009-04-27 09:16:01
Subject: Re: [Bacula-users] Glitches in new Windows download file - remote drives
From: Bernd Plagge <bplagge AT choicenet.ne DOT jp>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 27 Apr 2009 22:11:02 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Arno,

thanks for the hints.

> Did you actually run the script to update the database schema?
No, I deleted the old installation and installed the new one.

Remote drives:
Studied the documentation and added the 'onefs=no' option to the FileSet:

Relevant parts:

#
# Note: Windows path separators do NOT work correctly in FileSets.
#
# List of files to be backed up
FileSet {
  Name = "KLJ_Backup"
  Enable VSS = yes
  Include {
    Options {
      signature = MD5
      ignore case = yes
      Exclude = yes
      EnhancedWild = yes
      onefs = no

      # Exclude directories full of lots and lots of useless little files
      WildDir = "[A-Z]:/Documents and Settings/*/Cookies"
      WildDir = "[A-Z]:/Documents and Settings/*/Recent"
      WildDir = "[A-Z]:/Documents and Settings/*/{Local 
Settings,LOCALS~1}/History"
      WildDir = "[A-Z]:/Documents and Settings/*/{Local Settings,LOCALS~1}/Temp"
      WildDir = "[A-Z]:/Documents and Settings/*/{Local 
Settings,LOCALS~1}/Temporary Internet Files"

      # Exclude directories full of lots and lots of useless little files
      WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/Cookies"
      WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/Recent"
      WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/{Local 
Settings,LOCALS~1}/History"
      WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/{Local 
Settings,LOCALS~1}/Temp"
      WildDir = "[A-Z]:/{WINNT,Windows}/Profiles/*/{Local 
Settings,LOCALS~1}/Temporary Internet Files"

      # Exclude directories full of lots and lots of useless little files
      WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/Cookies"
      WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/Recent"
      WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/{Local 
Settings,LOCALS~1}/History"
      WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/{Local 
Settings,LOCALS~1}/Temp"
      WildDir = "[A-Z]:/{WINNT,Windows}/system32/config/systemprofile/{Local 
Settings,LOCALS~1}/Temporary Internet Files"

      # Some random bits of Windows we want to ignore
      WildDir = "[A-Z]:/{WINNT,Windows}/Prefetch"
      WildDir = "[A-Z]:/{WINNT,Windows}/msdownld.tmp"
      WildDir = "[A-Z]:/{WINNT,Windows}/Internet Logs"
      WildDir = "[A-Z]:/{WINNT,Windows}/$Nt*Uninstall*"
      WildDir = "[A-Z]:/{WINNT,Windows}/Downloaded Installations"

      # Temporary directories & files
      WildDir = "[A-Z]:/{WINNT,Windows}/Temp"
      WildDir = "[A-Z]:/Temp"
      WildFile = "*.tmp"
      WildDir = "[A-Z]:/tmp"

      # Fast Find
      WildFile = "[A-Z]:/ffastun*"

      # System Restore
      WildDir = "[A-Z]:/System Volume Information"

      # Windows Update
      WildDir = "[A-Z]:/WUTemp"

      # Recycle bins
      WildDir = "[A-Z]:/RECYCLE[DR]"

      # Swap files
      WildFile = "[A-Z]:/pagefile.sys"
      WildFile = "[A-Z]:/hiberfil.sys"

      # These are programs and are easier to reinstall than restore from
      # backup
      WildDir = "[A-Z]:/cygwin"
      WildDir = "[A-Z]:/{Program Files,PROGRA~1}/Java"
      WildDir = "[A-Z]:/{Program Files,PROGRA~1}/Java Web Start"
      WildDir = "[A-Z]:/{Program Files,PROGRA~1}/JavaSoft"
      WildDir = "[A-Z]:/{Program Files,PROGRA~1}/Microsoft Office"
    }

    File = "C:/Dell"
    File = "C:/Documents and Settings"
    File = "C:/Drivers"
    File = "C:/Install"
    File = "C:/Program Files"
    File = "C:/WINDOWS"

    # SAP Backup Files
    File = "D:/SAP/SAP Business One/SBO_SHR/Database/SBO Live Backup"

    # Link Station
    File = "P:/"
    File = "Q:/"
    File = "R:/"
  }


  Exclude {
    File = C:/tmp
  }
}


Here are the relevant trace lines (for drive r:)
klgd-01-fd: /home/kern/bacula/k/src/findlib/find.c:197-33 F R:/
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:199-33 Enter 
wchar_win32_path
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:383-33 Leave 
wchar_win32_path=R
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:654-33 
FindFirstFileW=R:/
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:910-33 sizino=8 
ino=0 file=R:/
klgd-01-fd: /home/kern/bacula/k/src/findlib/find_one.c:328-33 File ----: R:/
klgd-01-fd: /home/kern/bacula/k/src/findlib/find_one.c:174-33 drive type remote 
for "R:/" does not match fixed

For comparision, this is the output when everything works out:

klgd-01-fd: /home/kern/bacula/k/src/findlib/find.c:197-33 F C:/Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:199-33 Enter 
wchar_win32_path
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:383-33 Leave 
wchar_win32_path=C
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:654-33 
FindFirstFileW=C:/Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:721-33 st_rdev=0 
file=C:/Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:910-33 sizino=8 
ino=0 file=C:/Dell
klgd-01-fd: /home/kern/bacula/k/src/findlib/find_one.c:328-33 File ----: C:/Dell
klgd-01-fd: /home/kern/bacula/k/src/findlib/find_one.c:169-33 Accepting drive 
type fixed for "C:/Dell"
klgd-01-fd: /home/kern/bacula/k/src/findlib/find_one.c:625-33 Create temp ff 
packet for dir: C:/Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:1138-33 Opendir 
path=C:/Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:112-33 Enter 
convert_unix_to_win32_path
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:163-33 path=C:\Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:172-33 Leave 
cvt_u_to_win32_path path=C:\Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:1146-33 win32 
path=C:\Dell
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:199-33 Enter 
wchar_win32_path
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:383-33 Leave 
wchar_win32_path=C
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:1176-33 
opendir(C:/Dell)
        spec=C:\Dell\*,
        FindFirstFile returns 2838960
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:1183-33     
FirstFile=.
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:1256-33 
readdir_r(11b6490, { d_name=".", d_reclen=1, d_off=0
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:1256-33 
readdir_r(11b6490, { d_name="..", d_reclen=2, d_off=1
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:1256-33 
readdir_r(11b6490, { d_name="homepage", d_reclen=8, d_off=3
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:199-33 Enter 
wchar_win32_path
klgd-01-fd: /home/kern/bacula/k/src/win32/compat/compat.cpp:383-33 Leave 
wchar_win32_path=C


It seems that the program is rejecting the LAN Disk because it recognizes a 
file type 'remote' while only accepting 'fixed'. Is there a way to disable this?

Thanks for any help.

Cheers,
Bernd


> 
> Hi,
> 
> 23.04.2009 05:02, Bernd Plagge wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Hello,
> > 
> > a few days I downloaded and installed the new Windows 3.0 version because I 
> > got one of these 'can't stat file' error messages.
> > I did a new installation.
> >
> > The 'can't stat file' messages are gone - thanks!
> > The jobs were always set to 'error' and it turned out that the db version 
> > set by the sqlite3 make table job is '10' while the programs requests 11. 
> > That was easy to correct. But then the update of the Job table failed 
> > because column 'ReadBytes' didn't exist. I manually added this as BIGINT 
> > DEFAULT 0 column.
> > So, it seems that the job creating the sqlite3 DB tables needs to be 
> > updated.  
> 
> Did you actually run the script to update the database schema?
> 
> > As I need to back up files residing on a network storage device (Buffalo 
> > LinkStation) I specified a ClientRunBeforeJob to mount these shares with 
> > 'net use' and a corresponding ClientRunAfterJob to unmount them again.
> > This works fine.
> > 
> > The problem is that Bacula doesn't back up any data from these 'drives' 
> > although I can list the data either from the console or using the explorer. 
> > Error message is: 'unlisted drive type "remote"'.  
> 
> The file set you use would be interesting in this case.
> 
> Also, if the file set is not the problem, you should create a debug
> output trace of the FD wile it's running a job which produces the
> error. 'setdebug client=win-machine level=400 trace=1' should create a
> trace file in the FD's working directory.
> 
> Arno


- -- 
Bernd Plagge - プラゲ ベェアント 
First Choice Internet Ltd., Tokyo - ファースト・チョイス・インターネット(有)

*****  新電話番号 - 3月16日から New Phone Number from 03/16 ******

                          03 - 6379 2516

mail: bplagge AT choicenet.ne DOT jp - url: http://www.choicenet.ne.jp
        **************************************************************
                        *** Campaign ***
Affordable Web Sites http://choicenet.ne.jp/en/hpcampaign.html
ホームページキャンペーン  http://choicenet.ne.jp/jp/hpcampaign.html
        **************************************************************
FREE Web Assessment: http://choicenet.ne.jp/en/website_assessment.html
Web Design:          http://choicenet.ne.jp/en/webdesign.html
Web Hosting:         http://choicenet.ne.jp/en/hosting.html
Net Support:         http://choicenet.ne.jp/en/netsupport.html
                        *******************
無料ウエブサイト評価     http://choicenet.ne.jp/jp/website_assessment.html
ウエブデザイン:          http://choicenet.ne.jp/jp/webdesign.html
ウエブホスティング:      http://choicenet.ne.jp/jp/hosting.html
ネットワークサポート:    http://choicenet.ne.jp/jp/netsupport.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkn1ruYACgkQpYU8M8PbPV7aswCgrN/R+QAFUnMO8bFfKfjBp+ox
/F4AnjvERllh5TKR8/0PV/HNyJJm3xQ4
=It6v
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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>