Hello,

as a showcase for the bareos-python director API I've written a little
python program, that also eases some common tasks.

bsmc (Bareos Simple Management CLI) is intended to run on a certain
client and run tasks only related to this fd.
Examples:

bsmc incr
Will trigger related jobs for the client (client name and jobs have to
be configured in /etc/bareos/bsmc.conf)

bsmc query sched
Shows scheduled jobs for client

bsmc restore /etc/vimrc
Restores most recent backup of /etc/vimrc to original location (you can
add a directory prefix using -d).

bsmc archive /etc /tmp/myfile.txt
Will run a predefined archive job that backups the given files or
directories.

The script and sample configuraton files are on GitHub:
https://github.com/bareos/bareos-contrib/tree/master/misc/bsmc

Installation packages (name: bareos-bsmc) are available in our
contrib-repository:
http://download.bareos.org/bareos/contrib/

The code is more a PoC and has room for improvements like better error
handling or more functions.
Feedback and patches appreciated ;-)

-- 
With kind regards // Mit freundlichen Grüßen
--
 Maik Außendorf                             [email protected]
 Bareos GmbH & Co. KG                       Phone: +49221630693-93
 http://www.bareos.com                      Fax: +49221630693-10

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


-- 
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