I have written a Purebasic-Script some time ago for our windows-bacula-clients that search for files with archive-flag in Windows. I can send a binary copy of it to you (with some source included maybe GPL or something). I can´t give any guarantee that it will work but it´s running more than a year on 3 of our main WinNT-Servers and one Win2K-PC without nuking them at all ;) - Dependig of getting the keyword "Full" or not (from bacula) it would search for archive-flags and set timestemp to such files so it seems newer. Not everybody like that because many files look like new files than.
It can write a bacula-readable filelist of all found files in the same run too (so there is a snapshot-listing of the current backup) which can be used for a full-server restore after some incremental filesets without restoring tons of duplicate data. However last time we tried to restore a server with such a filelist it took very long (too long) before bacula reads the hole filelist (maybe this is better since 2.2 version of bacula).

Syntax would be following:

C:\tmp>prebck /?
Info: Will set date on files or directories with archive flag and remove the
      archiveflag. Optional write a list of all found files and dirs.

Usage:  prebck.exe FILE [FILE...] [-r] [-v] [-q] [Full] [-x EXFILE [EXFILE...]]
                 [-f FILELIST] [-i] [-t]
        -f FILELIST:  Write a list of all found files and dirs to FILELIST
        -i:           Ignore invalid directorys (without -i it will stop there)
        -q:           Return 0 Errorcode
        -r:           Recursive
        -t:           Filenumber of files with archiveflag
        -v:           Verbose
        -x EXFILE:    Exclude following files and directorys (case insensitive)
        Full:         Set no timestemp and create no filelist (archivefl. rem.)
        Incremental:  - ignored -
        Differential: - ignored -
        FILE:         File or Dirname (* not allowed)

C:\tmp>

In the bacula-dir.conf (Job section):
Client Run Before Job = "prebck -r -q -t -i %l e:/ -f c:/bacula/filelist.txt"

If you like it please send me information and I can send it to you (compressed about 9kb). I would not register some sourceforce place for such a small script.

Greetings,
User100




Michael Short schrieb:
Creating a separate job would not be easy as our system uses a management interface to add unique clients (and not independent jobs). Also using xcopy might destroy some of the permissions (as this is a home directory). Thanks for the suggestions but these are not suitable fixes for me.

Hopefully feature #1 will be implemented soon (Item  1:  Accurate restoration of renamed/deleted files) as this would fix my problem.

Sincerely,
-Michael

------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to