On Thu, 14 Apr 2005, Matt Bettinger wrote:
Thanks for the tips Dan and Karl.
One more question:
[snip]
#Run this script to do a FULL Backup
./bconsole -c ./bconsole.conf << END_OF_COMMANDS
@# This assumes the jobs have been defined as full backups.
@# Discard prior messages. They have been logged anyway
@output /dev/null
messages
What are the @ symbols for in the script example? I was under the
impression that @ was used for computations?
They are commands to the bacula console program, the script sends
/everything/ from the line after << END_OF_COMMANDS, until a line that
contains 'END_OF_COMMANDS' on it's own, this is called a 'here document'
More info on the @ commands here:-
http://www.bacula.org/rel-manual/Bacula_Console.html#SECTION000337000000000000000
and here documents, erm, here. :) :-
http://www.shu.ac.uk/schools/cms/teaching/ps/unix/heredocs.html
Cheers,
Ian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users