Re: [Bacula-users] Authentication at Baculum [SOLVED]

2020-01-17 Thread Ricardo Aragão da Silva
Hi, 

I solved the problem.

Now my Baculum have a version of authentication using Prado Auth with a simple 
HTML Form. I implemented using same file (htpasswd) of users. 

If this is an important feature for project, I can make a pull request.

Thanks for your attention. 

Regards,

Ricardo

> On Jan 17, 2020, at 12:13 AM, Ricardo Aragão da Silva 
>  wrote:
> 
> Hi guys,
> 
> I disabled Auth Basic and works fine. Now I’m trying add a Prado Auth 
> customized.It works fine the authentication, but after login nothing data is 
> loaded.
> 
> This error is showed to me :
> 
> 
> 
> I think that I need set more some thing to works fine. I already set 
> $_SERVER[‘PHP_AUTH_USER’].
> 
> Someone had this problem?
> 
> Thanks
> 
> Ricardo
> 
> 
> 
>> On Jan 4, 2020, at 2:10 PM, Rasmus Linden > > wrote:
>> 
>> Hi Ricardo!
>> I have baculum ( or its actually apache doing the lifting) authenticate 
>> against my companies ldap server.
>> Works like a charm, highly recommendable solution.
>> All the best
>> Ras
>> 
>> 
>>> On 5 Jan 2020, at 5:47 am, Marcin Haba >> > wrote:
>>> 
>>> Hello Ricardo,
>>> 
>>> Yes, it is possible to disable Auth Basic in Baculum Web. To do that
>>> you need to disable Auth Basic in your web server config file for
>>> Baculum Web and then you need to do a workaround in code by defining
>>> default Baculum Web user in gui/baculum/protected/Web/Init.php file,
>>> somewhere at the beginning of this file, for example:
>>> 
>>> $_SERVER['PHP_AUTH_USER'] = 'admin';
>>> $_SERVER['PHP_AUTH_PW'] = 'admin';
>>> 
>>> This way Baculum Web will default use this user/pass to work without Auth 
>>> Basic.
>>> 
>>> For other methods, unfortunately HTML form nor OAuth2 for Baculum Web
>>> are not supported.
>>> 
>>> I hope it helps.
>>> 
>>> Best regards,
>>> Marcin Haba (gani)
>>> 
>>> On Sat, 4 Jan 2020 at 00:32, Ricardo Aragão da Silva
>>> mailto:rara...@raragao.eng.br>> wrote:
 
 Hi guys,
 
 Someone knows if is possible disable Auth Basic of the Baculum or change 
 for other Auth type, like HTML form, for example ? Or use oauth2 to auth 
 to web?
 
 Thanks
 
 Ricardo
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net 
 
 https://lists.sourceforge.net/lists/listinfo/bacula-users
>>> 
>>> 
>>> 
>>> -- 
>>> "Greater love hath no man than this, that a man lay down his life for
>>> his friends." Jesus Christ
>>> 
>>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
>>> za przyjaciół swoich." Jezus Chrystus
>>> 
>>> 
>>> ___
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net 
>>> 
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backups to S3

2020-01-17 Thread Dimitri Maziuk via Bacula-users
On 1/17/20 1:03 PM, Jason Voorhees wrote:
...
> I'll start playing around with it. I'll let you know if anything does
> not work as expected.

You made me look: what I can find on amazon is VTL is
- $125/mo/gateway
- $0.30/restore
- $0.09/GB/month in regular or $0.01/GB/month in "glacial" storage.

S3 pricing appears to be
- $0.023/GB/month in "standard", $0.01 in "infrequent", and $0.004 in
"glacial" tiers.

However you pay half a penny per put and $0.0004 for get request on
"standard", and about an order of magnitude more on the other tries.

Please let us know how much you end up paying, too: 4TB NAS HDD is about
a hundred bucks, one-off, whereas 4TB of VTL storage is $368.64 *every
month*. In "infrequent" S3 it's "only" forty-one bucks per month (so on
the 3rd month you're better off with the hard drive), but the
interesting question is how much you rake up in data transfer fees.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backups to S3

2020-01-17 Thread Jason Voorhees
Thanks for your email, Heitor

> Why would you add an emulation/extra layer between Bacula and the final 
> destination?
What do you mean as extra layer? Are you referring to the integration
between Bacula and Amazon Storage VTL?

> Bacula S3 Plugin is really good. It provides nice options such as upload 
> behavior, cache and Bacula volume fine parts to make the transference more 
> granular.
> If your solution grows and you need heavy support on that, you can always 
> upgrade to the Enterprise Bacula in the future, which is compatible.
>
That's exactly what I wanted to know... if this Cloud/S3 plugin is not
just good, but it's also reliable enough for using it on production
servers

I'll start playing around with it. I'll let you know if anything does
not work as expected.

Thank you guys!


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Issue with config setting "Max Virtual Full Interval"

2020-01-17 Thread Martin Simmons
Did you have any other backups running at the same time as jobid 5738?  It
looks like it didn't find a device to read the previous backups.

__Martin


> On Fri, 10 Jan 2020 09:22:04 +, "Shaligram Bhagat, Yateen (Nokia said:
> 
> Hi all,
> 
> I am using bacula v 9.4.4 on Centos 6.4. for disk file based backup.
> 
> The backup scheme is weekdays incremental and virtual full back-up on Sunday.
> 
> Job {
>   Name = "blhwsync11"
>   Max Virtual Full Interval = 7 days
>   Accurate = no# With Accurate = yes, even file deletions, move etc 
> are covered in differential/incremental backup
>   ##Backups To Keep = 3  # default = 0, means all incremental backups till 
> the VirtualFull are consolidated
>   DeleteConsolidatedJobs = yes
>   JobDefs = "blhwsync11"
>   RunBeforeJob = "/opt/bacula/srpg/scripts/validate_testbed.sh blhwsync11"
>   }
> 
> Things were running fine till the interval between the last virtual full back 
> up job and the current incremental job was less than Max Virtual Full 
> Interval = 7 days
> 
> When this interval exceeded Max Virtual Full Interval = 7 days ;  for an 
> incremental backup, bacula tried to create a new virtual full backup by 
> consolidating the latest virtual full backup and all subsequent incremental 
> backups (...fair enough this is as expected)
> But while consolidating the jobs ; it gave error :
> 
> 10-Jan 13:53 bacula-server-dir JobId 5737: shell command: run AfterJob 
> "/opt/bacula/srpg/scripts/send_fail_mail.sh 5737 
> blhwsync11.2020-01-10_13.53.18_22 sas-backup-ad...@list.nokia.com"
> 10-Jan 13:54 bacula-server-dir JobId 5738: 10-Jan 13:54 bacula-server-dir 
> JobId 5738: No prior or suitable Full backup found in catalog. Doing Virtual 
> FULL backup.
> 10-Jan 13:54 bacula-server-dir JobId 5738: shell command: run BeforeJob 
> "/opt/bacula/srpg/scripts/validate_testbed.sh blhwsync11"
> 10-Jan 13:54 bacula-server-dir JobId 5738: Start Virtual Backup JobId 5738, 
> Job=blhwsync11.2020-01-10_13.54.16_04
> 10-Jan 13:54 bacula-server-dir JobId 5738: Warning: This Job is not an 
> Accurate backup so is not equivalent to a Full backup.
> 10-Jan 13:54 bacula-server-dir JobId 5738: Consolidating 
> JobIds=4739,5004,5216,5389
> 10-Jan 13:54 bacula-server-dir JobId 5738: Found 43700 files to consolidate 
> into Virtual Full.
> 10-Jan 13:54 bacula-server-dir JobId 5738: Using Device "DeviceF1" to write.
> 10-Jan 13:54 bacula-server-sd JobId 5738: Fatal error: Read and write devices 
> not properly initialized.
> 10-Jan 13:54 bacula-server-sd JobId 5738: Elapsed time=438512:24:21, Transfer 
> rate=0  Bytes/second
> 10-Jan 13:54 bacula-server-dir JobId 5738: Error: Bacula bacula-server-dir 
> 9.4.4 (28May19):
>   Build OS:   x86_64-redhat-linux-gnu-bacula redhat
>   JobId:  5738
>   Job:blhwsync11.2020-01-10_13.54.16_04
>   Backup Level:   Virtual Full
>   Client: "blhwsync11-fd" 9.4.4 (28May19) 
> x86_64-redhat-linux-gnu-bacula,redhat,
>   FileSet:"blhwsync11" 2019-12-10 22:00:01
>  Pool:   "TestbedFull-F" (From Job VFullPool override)
>   Catalog:"MyCatalog" (From Client resource)
>   Storage:"StorageF" (From Pool resource)
>   Scheduled time: 10-Jan-2020 13:54:14
>   Start time: 08-Jan-2020 22:00:02
>   End time:   08-Jan-2020 22:00:14
>   Elapsed time:   12 secs
>   Priority:   10
>   SD Files Written:   0
>   SD Bytes Written:   0 (0 B)
>   Rate:   0.0 KB/s
>   Volume name(s):
>   Volume Session Id:  1
>   Volume Session Time:1578644639
>   Last Volume Bytes:  1 (1 B)
>   SD Errors:  1
>   SD termination status:  Error
>   Termination:*** Backup Error ***
> 
> Later I tried running the virtual full backup "explicitly" to consolidate the 
> last virtual full and subsequent incremental jobs. This went through fine 
> without any errors.
> 
> So the issue seems to be in the Bacula's handling of the configuration 
> setting : "Max Virtual Full Interval "  ?
> Any advice ?
> 
> Thanks,
> Yateen
> 
> 


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backups to S3

2020-01-17 Thread Heitor Faria
Hello Jason,

> Hello guys, I hope you're doing well
> 
> I have a question: So far, which is the best combination for storing
> backups on S3 using Bacula? Is it through the new Cloud plugin? or is
> it best to use the Amazon VTL integration with Bacula? Which of these
> is the more reliable for production environments? Which one would you
> use?
> 
> My scenario seems to be simple enough: I need to backup data from
> several EC2 instances using Bacula and Amazon S3, both (EC2 and S3) in
> the same region. So bandwidth and data transfer pricing wouldn't be an
> issue for me.
> 
> I hope someone can share his experiences and/or recommendations.

Why would you add an emulation/extra layer between Bacula and the final 
destination?
Bacula S3 Plugin is really good. It provides nice options such as upload 
behavior, cache and Bacula volume fine parts to make the transference more 
granular.
If your solution grows and you need heavy support on that, you can always 
upgrade to the Enterprise Bacula in the future, which is compatible.

> Thanks in advance for your help, bats!

Regards,

> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
MSc Heitor Faria 
CEO Bacula LATAM 
mobile1: + 1 909 655-8971 
mobile2: + 55 61 98268-4220 
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ] 
[ http://www.bacula.com.br/ ] 

América Latina 
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ | 
bacula.com.br ]


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users