Bacula-users

[Bacula-users] bacula 3.0.2 fileset file-list on the fly ?

2009-08-12 21:33:55
Subject: [Bacula-users] bacula 3.0.2 fileset file-list on the fly ?
From: Clark Hartness <chartness AT camgian DOT com>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 12 Aug 2009 20:16:45 -0500
I am attempting to send a list of files to Bacula from the Client using 
this syntax described in the manual:

Any file-list item preceded by a less-than sign (<) will be taken to be 
a file. This file will be read on the Director's machine at the time the 
Job starts, and the data will be assumed to be a list of directories or 
files, one per line, to be included. The names should start in column 1 
and should not be quoted even if they contain spaces. This feature 
allows you to modify the external file and change what will be saved 
without stopping and restarting Bacula as would be necessary if using 
the @ modifier noted above. For example:

Include {
  Options { signature = SHA1 }
  File = "</home/files/local-filelist"
}

If you precede the less-than sign (<) with a backslash as in \<, the 
file-list will be read on the Client machine instead of on the 
Director's machine. Please note that if the filename is given within 
quotes, you will need to use two slashes.

Include {
  Options { signature = SHA1 }
  File = "\\</home/xxx/filelist-on-client"
}



If I use the \\< syntax I can not estimate or run the job to create the backup

I get errors like:

12-Aug 19:29 ws27-fd JobId 297:      Could not stat "File = 
/mnt/fog006/ddrswa/jckh/dlr_leopard_dev_12/dfb/doc/001-10043-dfb-BROS-starB.doc":
 ERR=No such file or directory
12-Aug 19:29 ws27-fd JobId 297:      Could not stat "File = 
/mnt/fog006/ddrswa/jckh/dlr_leopard_dev_12/dfb/doc/001-10043-dfb-BROS-starB.pdf":
 ERR=No such file or directory
12-Aug 19:29 ws27-fd JobId 297:      Could not stat "File = 
/mnt/fog006/ddrswa/jckh/dlr_leopard_dev_12/dfb/doc/001-10043-dfb-BROS-starC.doc":
 ERR=No such file or directory



# List of files to be backed up - 19 lines

FileSet {

  Name = "Test_FS_ws27"

  Include {

    Options {

        compression=GZIP

        signature = MD5

    }

    # Backup Specific Files From a WorkSpace on FOG

    # This could be created by a script that would be

    # RunBeforeJob to place a list of files that are not under

    # Sync or ICM Control

    File = "</net/ws27/disk2/ddrsbu/bacula/Test_Job_ws27.txt"

  }



#

  Exclude {

    # Exclude SnapShot Directories

    File = /.snapshot

  }

}



*estimate

The defined Job resources are:

     1: Job_Test_FileList

     2: Default_Job_WS27

     3: Default_Job_nfs5

     4: BackupCatalog_WS27

     5: RestoreFiles_Default_Job_WS27

     6: Camgian_nfs5_icmwa

Select Job resource (1-6): 1

Using Catalog "MyCatalog"

Connecting to Client ws27-fd at ws27.ms.camgian.com:9102

2000 OK estimate files=0 bytes=0

*

If I use the @ and restart bacula-dir I can estimate or run the job to 
create the backup

# List of files to be backed up - 19 lines
FileSet {
  Name = "Test_FS_ws27"
  Include {
    Options {
        compression=GZIP
        signature = MD5
    }
    # Backup Specific Files From a WorkSpace on FOG
    # This could be created by a script that would be
    # RunBeforeJob to place a list of files that are not under
    # Sync or ICM Control
    File = @/net/ws27/disk2/ddrsbu/bacula/Test_Job_ws27.txt
  }

#
  Exclude {
    # Exclude SnapShot Directories
    File = /.snapshot
  }
}

*estimate
The defined Job resources are:
     1: Job_Test_FileList
     2: Default_Job_WS27
     3: Default_Job_nfs5
     4: BackupCatalog_WS27
     5: RestoreFiles_Default_Job_WS27
     6: Camgian_nfs5_icmwa
Select Job resource (1-6): 1
Using Catalog "MyCatalog"
Connecting to Client ws27-fd at ws27.ms.camgian.com:9102
2000 OK estimate files=49 bytes=28,406,715
*quit
[root@ws27 bacula]#






------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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>