Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.rst - github.com/bareos/python-bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b2dd9296c06ecd014613a868b588cc32cbd447f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
python-bareos
=============

Python module to access a http://www.bareos.org backup system.

* prebuild packages available at http://download.bareos.org/bareos/contrib/


calling bareos-director user agent commands
-----------------------------------------------

.. code:: python

  import bareos.bsock

  password=bareos.bsock.Password("secret")
  bsock=bareos.bsock.BSock(address="localhost", port=9101, password=password)
  print bsock.call("help")
  ...


simple version of the bconsole in Python
--------------------------------------------

.. code:: python

  import bareos.bsock
  password=bareos.bsock.Password("secret")
  bconsole=bareos.BSock(address="localhost", port=9101, password=password)
  bconsole.interactive()
  ...

use JSON objects of API mode 2
----------------------------------

Requires: bareos >= 15.2

.. code:: python

  import bareos.bsock
  password=bareos.bsock.Password("secret")
  bconsole=bareos.bsock.BSockJson(address="localhost", port=9101, password=password)
  bconsole.call("list pools")
  ...