IvanBayan / python-bareos

Python libraries to access Bareos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-bareos

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

calling bareos-director user agent commands

import bareos.bsock

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

simple version of the bconsole in Python

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

use JSON objects of API mode 2

Requires: bareos >= 15.2

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

About

Python libraries to access Bareos

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%