Skip to content

sergeymazin/python-bareos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%