On 08.11.2017 at 18:51 wrote Stefan Harbich:
> Hi all,
> the following is an example on page 32 of how to connect a client to the 
> network and start a backup job.
> 
> URL: 
> https://archive.fosdem.org/2017/schedule/event/backup_dr_bareos_scripting/attachments/slides/1445/export/events/attachments/backup_dr_bareos_scripting/slides/1445/Interacting_with_Bareos.pdf
> 
> For this I have some questions?
> Is the script complete?

no.

> Where is the script called? On the server or client?

director (or any system that can open a console connection to the director).

> In the Director or in FileDaemon or StorageDaemon?
> 
> In the directory "/ usr / lib / bareos / plugin" I have created the following 
> file "nmanwme1" with the following content:
[...]

The script is not a plugin.

The full script is available from
http://trac.dass-it.de/pub/browser/people/joerg.steffens/technical/bareos/triggerjob/triggerjob.py

You have to call it with paramter see
/triggerjob.py --help
usage: triggerjob.py [-h] [-d] [--name NAME] -p PASSWORD [--port PORT]
                     [--dirname DIRNAME]
                     [address]

Console to Bareos Director.

positional arguments:
  address               Bareos Director network address

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           enable debugging output
  --name NAME           use this to access a specific Bareos director named
                        console. Otherwise it connects to the default
console
                        ("*UserAgent*")
  -p PASSWORD, --password PASSWORD
                        password to authenticate to a Bareos Director
console
  --port PORT           Bareos Director network port
  --dirname DIRNAME     Bareos Director name


So something like
triggerjob.py -d --password
"........mQMZshcuQg........ttpGikVi84........" 127.0.0.1

Try to run it manually at first, than you can run it by cron (or a
bareos admin job).


regards,
Jörg
-- 
 Jörg Steffens                   [email protected]
 Bareos GmbH & Co. KG            Phone: +49 221 630693-91
 http://www.bareos.com           Fax:   +49 221 630693-10

 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Komplementär: Bareos Verwaltungs-GmbH
 Geschäftsführer:
 S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to