I am still going through the documentation on setting everything up and just finished writing the test backup of /usr/sbin to my Test001 volume successfully. I am looking around and I see many writeups offering to backup to S3//Amazon VTL but not from S3 to tape. Has anyone done this reliably? Does anyone have any resources or a direction to point me in. I have a feeling I have a long way to go.
I found an old post in bareos-devel that mentioned doing what I am trying to do ( https://groups.google.com/forum/?fromgroups#!searchin/bareos-devel/s3cmd%7Csort:relevance/bareos-devel/EkX36z3BtBk/tVM4ATsJCZQJ ). I am having issues with the first part of this though:
/usr/lib64/bareos/plugins/BareosFdPluginBaseclass.py in <module>()
25 # Functions taken and adapted from bareos-fd.py
26
---> 27 import bareosfd
ImportError: No module named bareosfd
I don't see this module on my system and I am not sure where it can be found. Any help would be appreciated.
It turns out ( apparently according to someone on the #bareos irc room) that he did finish the plugin but he has yet to release it. I thought the same thing ( use boto3 ) and am trying to do that now. I found the mysql backup example on github ( https://github.com/bareos/bareos-contrib/tree/master/fd-plugins/mysql-python )
I'm relatively new to everything programming and python and I've seemed to hit a beginner snag. I can't seem to import the bareosfd module::
/usr/lib64/bareos/plugins/BareosFdPluginBaseclass.py in <module>()
25 # Functions taken and adapted from bareos-fd.py
26
---> 27 import bareosfd
I can't seem to find any bareosfd.so either. May I ask what I need to install to use this module? I'm running Centos7 but I can switch to any os or compile from github if need be.
Thanks again Stephan! Sorry for the trouble
[root@kg10-19 ~]# yum list installed | grep -iE "bareos"
bareos.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-bconsole.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-client.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-common.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-database-common.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-database-mysql.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-database-tools.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-director.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-director-python-plugin.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-filedaemon.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-filedaemon-python-plugin.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2 <<< The plugin is installed
bareos-storage.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-storage-python-plugin.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-storage-tape.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-tools.x86_64 15.2.2-37.1.el7 @bareos_bareos-15.2
bareos-webui.noarch 15.2.2-41.1.el7 @bareos_bareos-15.2
libfastlz.x86_64 0.1-7.1.el7 @bareos_bareos-15.2
still when I try to import bareosfd it fails::
[root@kg10-19 ~]# python -m bareosfd
/bin/python: No module named bareosfd
Is there something I am missing? Do I need to change my environment to something else prior to being able to import this?
In [1]: import os, sys
In [2]: print os.environ['PYTHONPATH']
:/usr/lib64/bareos/plugins/:/usr/lib64/bareos/
In [3]: import bareosfd
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-4bb231fac54f> in <module>()
----> 1 import bareosfd
ImportError: No module named bareosfd
Thank you so much for your help with this. I hope I am not the only one with these issues.
https://github.com/lookcrabs/bareos-contrib/tree/master/fd-plugins/s3-python
It's not the best but its simple and seems to work. If anyone could help me fix this up or with any tips to make this work better I would be very appreciative.
Mine uses boto3 so it works with AWS s3, Ceph, Cleversave and hopefully any S3 like storage (minio etc). You just need to adjust the signature for awsv4 if you want the newer style otherwise it should work fine as is.
Currently, I can't get estimates to work properly but backups/restores seem to work.
I'm trying to find another plugin that has estimates working so I can more or less steal and adjust their bit. Any help would be greatly appreciated.