[Bacula-users] scripted restore not failsafe

2014-02-19 Thread Christoph Kluenter
Hi everybody,

I have server1 which creates files at
/somewhere/$YEAR/$MONTH/$DAY/ on a daily basis.

I want to restore this directory to server2.
So far, I have come up with this script:

/usr/sbin/bconsole << EOF
restore client=server1 select current strip_prefix=/somewhere/$YEAR/$MONTH/$DAY 
add_prefix=/somewhereelse/
restoreclient=server2
cd /somewhere/$YEAR/$MONTH/$DAY
mark *
done
yes
EOF 

The problem now is, if the "cd /somewhere/..." fails, then the next line
marks everything. The "cd" could fail, if the last backup of server1 didn't
run or the directory was not created for whatever reason.
Is there a way to fail if the path is not in the backup?

Cheers,
  Christoph

-- 
Christoph Kluenter   E-Mail: supp...@iphh.net
Technik  Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH  Fax: +49 (0)40 374919-29
Wendenstrasse 408AG Hamburg, HRB 76071
D-20537 Hamburg  Geschaeftsfuehrung: Axel G. Kroeger

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] listen on all interfaces

2013-12-24 Thread Christoph Kluenter
* Am Sun, Dec 22 at 16:34:35 -0600 , schrieb Dimitri Maziuk:
> On 12/22/2013 12:44 PM, Kern Sibbald wrote:
> > Hello Christoph,
> > 
> > Would you mind putting this into the bugs database
> > under Feature Requests.  I am looking at the network
> > code these days, and I think we can do something here.
> ...
> >> It would be great if this worked (ip instead of ipv6):
> >>  FDAddresses = { 
> >>   ip = { addr = :: ; port = 9102; }
> >>  }
> 
> Keep in mind that letting it automagically pick ip version can be
> tricky: if the nameserver returns both  and A records for host
> lookup, but the client there only talks ipv4, your connect will depend
> on the order of the records in dns reply. If A comes first, you'll
> connect. If  comes first, you'll fail.

It works with bacula. 

if the fd only listens on v4 but has a A and a  record, the director tries 
v6
first but then falls back to v4. The start of a backup takes a bit longer,
but it works.

Christoph
> 
> This is particularly nasty with smtp: mail server will just keep
> retrying & it'll be a week or two before the message bounces -- even
> though recipient's mail server is working perfectly well. (Over ipv4.)
> 
> -- 
> Dimitri Maziuk
> Programmer/sysadmin
> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
> 



> --
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk

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


-- 
Christoph Kluenter   E-Mail: supp...@iphh.net
Technik  Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH  Fax: +49 (0)40 374919-29
Wendenstrasse 408AG Hamburg, HRB 76071
D-20537 Hamburg  Geschaeftsfuehrung: Axel G. Kroeger

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] listen on all interfaces

2013-11-13 Thread Christoph Kluenter
Hi, 

I want my clients to listen on all interfaces. Its easy if you only use
ipv4. But this breaks:

 FDAddresses = { 
  ipv6 = { addr = :: ; port = 9102; }
  ipv4 = { addr = 0.0.0.0 ; port = 9102; }
 }

bacula-fd then starts and listens on ipv4 and ipv6,
even telnet works via v4 and v6. But
authentication with the bacula-director fails.

But: If I use this:
 FDAddresses = { 
  ipv6 = { addr = :: ; port = 9102; }
 }

Everything works. Even ipv4 ...
I think this should be documented somewhere.
It would be great if this worked (ip instead of ipv6):
 FDAddresses = { 
  ip = { addr = :: ; port = 9102; }
 }

But then, bacula-fd doesn't even start
Or did I miss something.

Cheers,
  Christoph
-- 
Christoph Kluenter   E-Mail: supp...@iphh.net
Technik  Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH  Fax: +49 (0)40 374919-29
Wendenstrasse 408AG Hamburg, HRB 76071
D-20537 Hamburg  Geschaeftsfuehrung: Axel G. Kroeger

--
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore with data encryption?

2011-12-21 Thread Christoph Kluenter
* Am Mon, Dec 19 2011 at 17:14:15 +0100 , schrieb Oliver Hoffmann:
> Hi all,
> 
> I do backups with data encryption. Backups as well as restores on the
> clients work without problems. 
> Now I want to be able to do restores with the server (or another one)
> only. The doc says that adding the following line would be enough.
> 
> PKI Keypair = "/etc/bacula/keys/master.keypair"
> 
> So my working bacula-fd.conf on the server looks like this (just the PKI
> part):
> 
> PKI Signatures = Yes
> PKI Encryption = Yes
> PKI Keypair = "/etc/bacula/keys/server-fd.pem"
> PKI Master Key = "/etc/bacula/keys/master.cert"
> 
> Next I replaced server-fd.pem with master.keypair like mentioned in
> the doc. I made the master.keypair accordingly.
> That doesn't work. Neither putting the client-fd.pem in place.
> 
> I got this error:
> 
> Error: restore.c:944 Missing cryptographic signature
> for /path/to/my/file
> 
> Thus the question is how to do a restore on a fd other than the one the
> Backup was made with.

This looks correct. That is exactly the way we do it and it works.
Maybe your master.keypair is broken ? Does the output of
"openssl x509 -in /path/to/master.keypair -noout -text" 
look good ? Is the private key in the keypair-file ?

Good luck,
  Christoph

> 
> Thank you for enlighten me ;-)
> 
> Oliver
> 
> --
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for 
> developers. It will provide a great way to learn Windows Azure and what it 
> provides. You can attend the event by watching it streamed LIVE online.  
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Christoph Kluenter   E-Mail: supp...@iphh.net
Technik  Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH  Fax: +49 (0)40 374919-29
Wendenstrasse 408AG Hamburg, HRB 76071
D-20537 Hamburg  Geschaeftsfuehrung: Axel G. Kroeger

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fstype=bind being ignored

2011-12-06 Thread Christoph Kluenter
* Am Thu, Jan 20 2011 at 11:21:30 + , schrieb Martin Simmons:
> >>>>> On Wed, 19 Jan 2011 15:48:13 +0100, Frank Altpeter said:
> > 
> > After a short discussion on the channel, I was advised to create a
> > post here to see if there's help for that or if it's really a bug.
> > 
> > I've got a machine that is using bind mounts. Despite the fact that
> > the fileset definition is using "onefs=no" and "fstype=ext3", the bind
> > mounts' content is saved which results in multiple saves of the same
> > content.
> > 
> > I know I could simply add the relevant mount points on the exclude
> > list in the fileset, but I think it would make sense if this is
> > considered like other fstype configurations as well, since I don't
> > like to manually tweak the fileset on every possible change of the
> > bind mounts, and to keep the default fileset simple and generic.
> > 
> > I've put some addional information on http://racoon.pastebin.com/r44RTxyP
> > 
> > The bacula-fd has version 2.4.4 on opensuse 11.1 and the server is
> > running 5.0.3, on SLES 11.1
> > 
> > 
> > Any hints appreciated.
> 
> Bacula implements onefs by looking for changes in the stat.st_dev (Device)
> field and implements fstype by calling statfs.  Unfortunately, both of these
> return the values associated with the target directory for bind mounts, so the
> mount point looks like a normal directory to Bacula.
> 
> You can see that by comparing the output printed by for / and /backup:
> 
> stat / /backup
> stat -f / /backup
> 
> I don't know if that counts as a bug or not.

I just hit this "bug". Since the clients bindmounts are quite volatile, it 
would be hard to
generate a fileset. Any other ideas how to force bacula to ignore bindmounts ?

Cheers,
  Christoph

> 
> __Martin
> 
> --
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand 
> malware threats, the impact they can have on your business, and how you 
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Christoph Kluenter   E-Mail: supp...@iphh.net
Technik  Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH  Fax: +49 (0)40 374919-29
Wendenstrasse 408AG Hamburg, HRB 76071
D-20537 Hamburg  Geschaeftsfuehrung: Axel G. Kroeger

--
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users