Just in time: I tested and it works.

# bacula-dir.conf

FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
    File = "\\|/tmp/list.sh"
  }
}

# /tmp/list.sh 
ls /tmp/dummy*

*list files jobid=8
+----------+
| Filename |
+----------+
| /tmp/dummy1 |
| /tmp/dummy2 |
| /tmp/dummy3 |
+----------+
+-------+---------------+---------------------+------+-------+----------+----------+-----------+
| JobId | Name          | StartTime           | Type | Level | JobFiles | 
JobBytes | JobStatus |
+-------+---------------+---------------------+------+-------+----------+----------+-----------+
|     8 | BackupClient1 | 2016-04-13 16:56:37 | B    | F     |        3 |       
 0 | T         |
+-------+---------------+---------------------+------+-------+----------+----------+-----------+

Regards,

----- Original Message -----
> From: "Heitor Faria" <hei...@bacula.com.br>
> To: "Lloyd Brown" <lloyd_br...@byu.edu>
> Cc: bacula-users@lists.sourceforge.net
> Sent: Wednesday, April 13, 2016 4:46:07 PM
> Subject: Re: [Bacula-users] relative order of scripts vs files

>> Heitor,
>> 
>> I don't know if this will affect anything, but your example backs up the
>> file "/tmp/dummy".  What I'm trying to do is read from a file, to get
>> the list of files to be backed up.  It's a difference between this syntax:
>> 
>>>     File = /tmp/dummy
>> 
>> And something more like this:
>> 
>>>     File = "\\</tmp/dummy"
> 
> Hello, Lloyd: now I see.
> I think calling scripts from Bacula configuration is not vastly documented, 
> but
> I think using shell redirect will never work. You can try this:
> 
> "\\|/etc/bacula/scripts/files_list.sh"
> 
> And the script should print the path to the files.
> This is an adapation of another script documented here:
> http://wiki.bacula.org/doku.php?id=application_specific_backups:postgresql
> 
> Regards,
> --
> ===========================================================================
> Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified
> Administrator II
> Do you need Bacula training? http://bacula.us/video-classes/
> +55 61 8268-4220
> Site: http://bacula.us FB: heitor.faria
> ===========================================================================
> 
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
======================================================================= 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Próximas aulas telepresencial ao-vivo - 02 de maio: 
http://www.bacula.com.br/agenda/ 
Ministro treinamento e implementação in-company Bacula: 
http://www.bacula.com.br/in-company/ 
Ou assista minhas videoaulas on-line: 
http://www.bacula.com.br/treinamento-bacula-ed/ 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 
========================================================================

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to