Re: [Bacula-users] Firewall traversal

2011-06-23 Thread shouldbe q931
2011/6/23 Kevin O'Connor :
> So I've followed that SSH tunneling article, but I see that the FD on the
> remote server outside of the firewall is trying to connect to 172.16.x.x,
> which is what the SD resolves to inside of our network.  I've followed the
> instructions in the article to add the SD FQDN to /etc/hosts to make it
> resolve to 127.0.0.1, but somehow this 172.16.x.x address is getting passed
> along.
> Does the Bacula Director resolve that FQDN and pass the IP along instead of
> passing the FQDN?  I'm talking about what's specified in bacula-sd.conf.
> Thanks!
>
> On Mon, Jun 20, 2011 at 6:55 PM, Dan Langille  wrote:
>>
>> On Jun 20, 2011, at 12:11 PM, Kevin O'Connor wrote:
>>
>> > My setup is as follows:
>> >
>> > Bacula Server (DIR, SD) -> Firewall/NAT -> Server to be backed up (FD)
>> >
>> > The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW).
>> >
>> > When I start the backup, the Director connects to the FD without a
>> > problem, but then when the Director tells the FD to connect back to the SD
>> > it fails because of the NAT.  I'm in a situation where I can't get the 
>> > ports
>> > forwarded, but it would seem that there should be a way to have the SD
>> > connect out to the FD or something along those lines to get this working.
>> >  Is there a way to do that that I've missed in the docs or is really the
>> > only way to get this working is to expose the SD?
>>
>> No, there is not.
>>
>> I highly recommend OpenVPN.  It simplifies a great many things.
>>
>>
>> --
>> Dan Langille - http://langille.org
>>
>
>
I would second Dan and suggest that OpenVPN is a cleaner method that
using an SSH Tunnell. There is some more work to initially configure,
but as you are creating a full tunnel,  n

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Firewall traversal

2011-06-23 Thread shouldbe q931
2011/6/23 Kevin O'Connor :
> So I've followed that SSH tunneling article, but I see that the FD on the
> remote server outside of the firewall is trying to connect to 172.16.x.x,
> which is what the SD resolves to inside of our network.  I've followed the
> instructions in the article to add the SD FQDN to /etc/hosts to make it
> resolve to 127.0.0.1, but somehow this 172.16.x.x address is getting passed
> along.
> Does the Bacula Director resolve that FQDN and pass the IP along instead of
> passing the FQDN?  I'm talking about what's specified in bacula-sd.conf.
> Thanks!
>
> On Mon, Jun 20, 2011 at 6:55 PM, Dan Langille  wrote:
>>
>> On Jun 20, 2011, at 12:11 PM, Kevin O'Connor wrote:
>>
>> > My setup is as follows:
>> >
>> > Bacula Server (DIR, SD) -> Firewall/NAT -> Server to be backed up (FD)
>> >
>> > The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW).
>> >
>> > When I start the backup, the Director connects to the FD without a
>> > problem, but then when the Director tells the FD to connect back to the SD
>> > it fails because of the NAT.  I'm in a situation where I can't get the 
>> > ports
>> > forwarded, but it would seem that there should be a way to have the SD
>> > connect out to the FD or something along those lines to get this working.
>> >  Is there a way to do that that I've missed in the docs or is really the
>> > only way to get this working is to expose the SD?
>>
>> No, there is not.
>>
>> I highly recommend OpenVPN.  It simplifies a great many things.
>>
>>
>> --
>> Dan Langille - http://langille.org
>>
>
>
I would second Dan and suggest that OpenVPN is a cleaner method that
using an SSH Tunnell. There is some more work to initially configure,
but as you are creating a full tunnel, not just forwarding a single port, it
allows you to run "anything" without modifying the application.

apologies to all for two emails, not a clue how the other email
managed to send...

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Firewall traversal

2011-06-23 Thread Jari Fredriksson
23.6.2011 4:28, Dan Langille kirjoitti:
> 
> On Jun 22, 2011, at 9:18 PM, Kevin O'Connor wrote:
> 
>> On Mon, Jun 20, 2011 at 6:55 PM, Dan Langille  wrote:
>> On Jun 20, 2011, at 12:11 PM, Kevin O'Connor wrote:
>>>
 My setup is as follows:

 Bacula Server (DIR, SD) -> Firewall/NAT -> Server to be backed up (FD)

 The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW).

 When I start the backup, the Director connects to the FD without a 
 problem, but then when the Director tells the FD to connect back to the SD 
 it fails because of the NAT.  I'm in a situation where I can't get the 
 ports forwarded, but it would seem that there should be a way to have the 
 SD connect out to the FD or something along those lines to get this 
 working.  Is there a way to do that that I've missed in the docs or is 
 really the only way to get this working is to expose the SD?
>>>
>>> No, there is not.
>>>
>>> I highly recommend OpenVPN.  It simplifies a great many things.
>>
> 
>> So I've followed that SSH tunneling article, but I see that the FD on the 
>> remote server outside of the firewall is trying to connect to 172.16.x.x, 
>> which is what the SD resolves to inside of our network.  I've followed the 
>> instructions in the article to add the SD FQDN to /etc/hosts to make it 
>> resolve to 127.0.0.1, but somehow this 172.16.x.x address is getting passed 
>> along.
> 
> I can't comment.  You didn't provide the URL to the document you are 
> following.  Please don't expect us to search for it.  :)
> 
> 
> What host has the SD resolve to localhost?  Nobody should need that.
> 

ssh-tunnel solutions requires that on the fd machine. There sshd listens
on localhost on behalf of SD, and forwards the connection over the tunnel.

The document is on Bacula wiki page, and it works. I have implemented
ssh-tunneling per the document, and I have no problems.

>>
>> Does the Bacula Director resolve that FQDN and pass the IP along instead of 
>> passing the FQDN?  I'm talking about what's specified in bacula-sd.conf.
>>
>> Thanks!
> 

Are you sure you have the FQDN in the Bacula config file, and not the
172.xx IP-address?

I have followed the same doc, and my setup just works.

-- 

The true Southern watermelon is a boon apart, and not to be mentioned with
commoner things.  It is chief of the world's luxuries, king by the grace
of God
over all the fruits of the earth.  When one has tasted it, he knows what the
angels eat.  It was not a Southern watermelon that Eve took; we know it
because
she repented.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"



signature.asc
Description: OpenPGP digital signature
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore of old files

2011-06-23 Thread Andre Lorenz
hi,

that's a big problem, if i try to select the whole job it will start
restoring ~18TB.

so i think i have to catalog the media :-( and rebuild the  database. is
there any other solution available ?

thanks
andre

On 23.06.2011 01:44, Dan Langille wrote:
> On Jun 22, 2011, at 9:10 AM, Andre Lorenz wrote:
>
>> On 22.06.2011 13:22, Jeremy Maes wrote:
>>> Op 22/06/2011 12:40, Andre Lorenz schreef:
 hi,

 i'd like to restore old files, but the files are not shown up :-(
> What do you mean by this?  You do a restore and the files do not show up?
>
> If so, are you:
>
> * looking on the restored-to-host?
> * looking in the restore-to-diredtory?
>
> If the problem is you cannot select the files, try restoring the entire job.
>
>
>
 i can see the old backup job, but if i would like to select this job,
 there are no files shown up for this.

 the retention period for this job is 1 year, also the media will be kept
 for 1 year.
>>> What is the File Retention period set to?
>>>
>>> There are 3 levels at which bacula will prune database info: file
>>> level (all separate files from a job), job level (the full job) and
>>> volume level (all jobs on a given volume). If your File Retention is
>>> set to 3 months (for example) and autoprune is enabled than after
>>> those 3 months you'll only be able to restore the full job, not
>>> separate files.
>>>
 does i have to inventory the media again, for getting the right version
 of the file?
 the backup was made in February this year.

 thanks in advance
 Andre
>>> Regards,
>>> Jeremy
>>>
>>>  DISCLAIMER 
>>> http://www.schaubroeck.be/maildisclaimer.htm
>> on the client:
>>  File Retention = 360 days# 30 days
>>  Job Retention =  12 months# six months
>> on pool:
>>  Volume Retention = 365 days
>>
>> this means that normally the files should be in database.
>>
>
> We will take your word for that, given we don't know how old the backups are.
>




--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore of old files

2011-06-23 Thread Radosław Korzeniewski
Hello,

2011/6/23 Andre Lorenz 

> hi,
>
> that's a big problem, if i try to select the whole job it will start
> restoring ~18TB.
>
> so i think i have to catalog the media :-( and rebuild the  database. is
> there any other solution available ?
>
>
You can use a 'bls' utility for inspecting an archive volume and 'bextract'
utility for restoring only particular files from volume.
You have to know on which volume (or volumes) your backup exist. Both
utilities doesn't require any catalog information.

I hope it helps.

best regards

-- 
Radosław Korzeniewski
rados...@korzeniewski.net
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Still not getting wildcard matching

2011-06-23 Thread Martin Simmons
> On Wed, 22 Jun 2011 21:25:24 -0600, Stuart McGraw said:
> 
> I am converting FileSets that used mostly used regexes
> to use wild matches where possible.  But I am still not
> getting how wildcard matching is working.
> 
> Options {
> Wilddir = "/home/*/.backup"
> Wild= "/home/*/.backup/*"
> }
> Options {
> Exclude = yes
> Wild= "/home/*/.*"
> Wilddir = "/home/*/tmp"
> Wilddir = "/home/*/Maildir/.*/tmp"
> }
> File = /home
> 
> The above FileSet is excluding all /home/*/Maildir/.* files, not
> just the .../tmp subset I intended.  Why?  And how do I fix it?
> 
> I have not been seen in the Bacula manual a description of exactly 
> how filenames match wildcard specs (e.g. does "a*b" match "a/b"?).  

Yes, that is the problem.  "/home/*/.*" matches "/home/smcg4191/Maildir/.foo"
:-(  You'll probably have to use regex for that one.


> Is one available somewhere?

Look at man fnmatch.  Bacula can pass the FNM_CASEFOLD flag if IgnoreCase=yes
is specified, but that is the only documented option.

__Martin

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula on Windows

2011-06-23 Thread John Malone
Hi,
 
Appended is the output of the Bacula Status screen on my test client, an XP 
machine.
The job has been running for 22 minutes, on this occasion (and I have tried 
this several times) and it never does anything else.
 
I'm interested in the "SDSocket closed." message. I have seen several 
references to it on the web but no explanation, either of what it means or what 
to do about it.
 
The next question, of course, is what to do about all those zeroes? (Files=0 
Bytes=0 Bytes/sec=0 Errors=0  Files Examined=0)
Cheers
 
John
 
bristol-1622a6f-fd Version: 5.0.3 (04 August 2010)  VSS Linux Cross-compile 
Win32
Daemon started 22-Jun-11 16:09. Jobs: run=0 running=0.
 Heap: heap=0 smbytes=46,325 max_bytes=87,066 bufs=98 max_bufs=171
 Sizeof: boffset_t=8 size_t=4 debug=0 trace=1
 
Running Jobs:
JobId 17 Job bristol-1622a6f-fd.2011-06-23_12.53.35_09 is running.
Full System or Console Job started: 23-Jun-11 12:56
Files=0 Bytes=0 Bytes/sec=0 Errors=0
Files Examined=0
SDSocket closed.
Director connected at: 23-Jun-11 12:58

 
Terminated Jobs:


__
'Do it online' with our growing range of online services - 
http://www.bristol.gov.uk/services

Sign-up for our email bulletin giving news, have-your-say and event information 
at: http://www.bristol.gov.uk/newsdirect 

View webcasts of Council meetings at http://www.bristol.gov.uk/webcast

Bristol is the UK's first Cycling City. Visit www.betterbybike.info to join 
thousands of others getting around by bike.
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula on Windows

2011-06-23 Thread Konstantin Khomoutov
On Thu, 23 Jun 2011 13:28:06 +0100
"John Malone"  wrote:

> Appended is the output of the Bacula Status screen on my test client,
> an XP machine. The job has been running for 22 minutes, on this
> occasion (and I have tried this several times) and it never does
> anything else. I'm interested in the "SDSocket closed." message. I
> have seen several references to it on the web but no explanation,
> either of what it means or what to do about it. The next question, of
> course, is what to do about all those zeroes? (Files=0 Bytes=0
> Bytes/sec=0 Errors=0  Files Examined=0)

Try to troubleshoot your Windows client installation by enabling its
debugging trace file (and possibly running it interactively from a
console window).  For hints on how to do this, refer to this message,
for instance:
http://www.adsm.org/lists/html/Bacula-users/2011-05/msg00045.html

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] VXA-2 Tape not filling

2011-06-23 Thread Brian Debelius

On 6/21/2011 10:57 PM, Christian Tardif wrote:


I found something strange. If I try to issue this command:

mt -f /dev/nst0 status

I'll get one line that says:

Tape block size 0 bytes. Density code 0x81 (DLT 15GB compressed).

Isn't that strange? I'm trying to understand what this density code is 
doing there. tapeinfo reports this density code as well (which should, 
anyway) but says that Partition 0 Size in KBytes is 76787712.


From my experience the density code does not mean anything.  The tape 
block size of 0 bytes indicates that the tape drive is set for variable 
block size which is what bacula wants by default.  You may want to play 
with this and set it to a fixed larger size for performance, after you 
get things working.  I use 256K blocks.



--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Firewall traversal

2011-06-23 Thread Kevin O'Connor
2011/6/23 Jari Fredriksson 

> 23.6.2011 4:28, Dan Langille kirjoitti:
> >
> > On Jun 22, 2011, at 9:18 PM, Kevin O'Connor wrote:
> >
> >> On Mon, Jun 20, 2011 at 6:55 PM, Dan Langille  wrote:
> >> On Jun 20, 2011, at 12:11 PM, Kevin O'Connor wrote:
> >>>
>  My setup is as follows:
> 
>  Bacula Server (DIR, SD) -> Firewall/NAT -> Server to be backed up (FD)
> 
>  The FD is accessible from anywhere, but the DIR/SD is not (NAT/FW).
> 
>  When I start the backup, the Director connects to the FD without a
> problem, but then when the Director tells the FD to connect back to the SD
> it fails because of the NAT.  I'm in a situation where I can't get the ports
> forwarded, but it would seem that there should be a way to have the SD
> connect out to the FD or something along those lines to get this working.
>  Is there a way to do that that I've missed in the docs or is really the
> only way to get this working is to expose the SD?
> >>>
> >>> No, there is not.
> >>>
> >>> I highly recommend OpenVPN.  It simplifies a great many things.
> >>
> >
> >> So I've followed that SSH tunneling article, but I see that the FD on
> the remote server outside of the firewall is trying to connect to
> 172.16.x.x, which is what the SD resolves to inside of our network.  I've
> followed the instructions in the article to add the SD FQDN to /etc/hosts to
> make it resolve to 127.0.0.1, but somehow this 172.16.x.x address is getting
> passed along.
> >
> > I can't comment.  You didn't provide the URL to the document you are
> following.  Please don't expect us to search for it.  :)
> >
> >
> > What host has the SD resolve to localhost?  Nobody should need that.
> >
>
> ssh-tunnel solutions requires that on the fd machine. There sshd listens
> on localhost on behalf of SD, and forwards the connection over the tunnel.
>
> The document is on Bacula wiki page, and it works. I have implemented
> ssh-tunneling per the document, and I have no problems.
>

The document is a little fuzzy as to what steps are required where, the SSH
tunnel should be created on the director which will then connect out to the
system to be backed up running the FD?  Then the FD goes through the tunnel
that's been opened up on localhost and the traffic should be directed to the
SD port on the director?

>
> >>
> >> Does the Bacula Director resolve that FQDN and pass the IP along instead
> of passing the FQDN?  I'm talking about what's specified in bacula-sd.conf.
> >>
> >> Thanks!
> >
>
> Are you sure you have the FQDN in the Bacula config file, and not the
> 172.xx IP-address?
>
> I have followed the same doc, and my setup just works.
>

Yeah, absolutely.  There's no reference in any of my configs anywhere (dir,
sd, fd) on either machine to that IP, so it makes me think the Director is
resolving it, using that value internally, and then passing that over the
wire instead of the FQDN specified in my config.  I'm using Director 5.0.3
and FD 5.0.1 if that makes a difference.

>
> --
>
> The true Southern watermelon is a boon apart, and not to be mentioned with
> commoner things.  It is chief of the world's luxuries, king by the grace
> of God
> over all the fruits of the earth.  When one has tasted it, he knows what
> the
> angels eat.  It was not a Southern watermelon that Eve took; we know it
> because
> she repented.
>-- Mark Twain, "Pudd'nhead Wilson's Calendar"
>
>
>
> --
> Simplify data backup and recovery for your virtual environment with
> vRanger.
> Installation's a snap, and flexible recovery options mean your data is
> safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Nuke and Start Over

2011-06-23 Thread Michael Anderson
Am 6/23/11 3:31 AM, schrieb Dan Langille:
> On Jun 22, 2011, at 6:16 AM, Michael Anderson wrote:
>
>> Hello,
>>
>> I've been experimenting a bit and would like to nuke everything and
>> start over. I've dropped my database, created a new one, and run the
>> make_postgres_tables script. Additionally, I've deleted all the files
>> under /var/lib/bacula, but when I start bconsole, I still have all the
>> old jobs there.
>>
>> What have I missed?
>
> http://wiki.bacula.org/doku.php?id=faq#why_do_i_still_see_old_jobs_in_status_messages_after_i_dropped_the_catalog
>
Thanks.
I had actually already deleted *.state files on the local 
machine, however, I had neglected to do the same on the other machines 
with storage and client daemons.

-- 
Michael Anderson
IT Services&  Support

elego Software Solutions GmbH
Gustav-Meyer-Allee 25
Building 12.3 (BIG) room 227
13355 Berlin, Germany

phone +49 30 23 45 86 96  michael.anderson at elegosoft.com
fax   +49 30 23 45 86 95  http://www.elegosoft.com

Geschaeftsfuehrer: Olaf Wagner, Sitz Berlin
Amtsgericht Berlin-Charlottenburg, HRB 77719, USt-IdNr: DE163214194


--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Mount request?

2011-06-23 Thread Paul Fontenot
I have an autochanger than passes all the tests but waits for me to load
mount the tapes. I'm certain I've over looked something fairly obvious and
would appreciate any pointers. I've got a USB drive working as an
autochanger with autofs so I imagine a real one shouldn;t need my help to do
it'd job.

Thanks
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mount request?

2011-06-23 Thread John Drescher
2011/6/23 Paul Fontenot :
> I have an autochanger than passes all the tests but waits for me to load
> mount the tapes. I'm certain I've over looked something fairly obvious and
> would appreciate any pointers. I've got a USB drive working as an
> autochanger with autofs so I imagine a real one shouldn;t need my help to do
> it'd job.
>

Did you recently use the umount command?

John

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restore of files when they don't list

2011-06-23 Thread Troy Kocher
Listers, 

I'm trying to restore data from medicaid 27, but it appears there are no files. 
 There is a file corresponding with this still on the disk, so I think it's 
just been purged from the database.  

Could someone help me thru the restore process when the files are no longer in 
the database.

Thanks!

Troy

*list pools
+++-+-+--+-+
| poolid | name   | numvols | maxvols | pooltype | labelformat |
+++-+-+--+-+
|  8 | DatabaseF  |   5 |   0 | Backup   | DatabaseF-  |


Select the Pool (1-21): 15
+-++---+-++--+--+-+--+---+---+-+
| mediaid | volumename | volstatus | enabled | volbytes   | volfiles | 
volretention | recycle | slot | inchanger | mediatype | lastwritten |
+-++---+-++--+--+-+--+---+---+-+
|   5 | DatabaseF-0005 | Used  |   1 | 10,523,990,936 |2 |  
  2,592,000 |   1 |0 | 0 | File  | 2011-06-01 02:46:26 |
|  21 | DatabaseF-0021 | Used  |   1 |  9,789,860,703 |2 |  
  2,592,000 |   1 |0 | 0 | File  | 2011-06-08 02:36:45 |
|  27 | DatabaseF-0027 | Used  |   1 | 10,410,167,386 |2 |  
  2,592,000 |   1 |0 | 0 | File  | 2011-06-16 00:10:55 |
|  33 | DatabaseF-0033 | Append|   1 | 10,509,175,135 |2 |  
  2,592,000 |   1 |0 | 0 | File  | 2011-06-23 02:54:28 |
|  37 | DatabaseF-0037 | Used  |   1 | 12,293,658,856 |2 |  
  2,592,000 |   1 |0 | 0 | File  | 2011-05-25 02:39:36 |
+-++---+-++--+--+-+--+---+---+-+


*list media pool=15 files jobid=27
Jobid 27 used 0 Volume(s): 
No results to list.
No results to list.
No results to list.

smime.p7s
Description: S/MIME cryptographic signature
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restore of files when they don't list

2011-06-23 Thread Steve Ellis
On 6/23/2011 1:31 PM, Troy Kocher wrote:
> Listers,
>
> I'm trying to restore data from medicaid 27, but it appears there are no 
> files.  There is a file corresponding with this still on the disk, so I think 
> it's just been purged from the database.
>
> Could someone help me thru the restore process when the files are no longer 
> in the database.
>
> Thanks!
>
> Troy
>
There are really only 3 options here that I can think of:
 1) restore the entire job (probably to an temporary location), then 
prune the bits you don't want.
 2) use bscan of the volume to recreate the file list in the db 
(note that I have only used this when the job itself had been expired 
from the DB)
 3) restore a dump of the catalog that contains the file entries 
that you wanted that have been expired

I'm pretty sure I've done both #1 and #2, #3 I'd be much more reluctant 
to just try, as I would worry about clobbering more recent catalog data, 
unless you used a separate catalog db for the restoration.  Unless the 
job is really huge, I'd probably do #1, because bscan is (slightly) 
dodgy, especially for backups that span volumes (IMHO, note that it is 
_much_ better than not having bscan at all).  Sorry I can't provide more 
detail, hopefully someone else will be able to help more.

-se

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Migrating form mysql to postgresql: Loading the database takes very long

2011-06-23 Thread Phil Stracchino
On 06/23/11 01:55, Bruno Friedmann wrote:
> Did you prepare ( I suppose ) postgresql to manage bacula database.
> As most of distribution around send postgresql with a very very little setup 
> (like use 32MB ram etc)
> 
> Adjusting the setup of postgresql can make a huge difference.

Rule of thumb:  Assume all out-of-the-box DB engine configurations, be
it MySQL, PostgreSQL or whatever, are worthless.


-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
  Renaissance Man, Unix ronin, Perl hacker, SQL wrangler, Free Stater
 It's not the years, it's the mileage.

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Access denied errors but clean exit?

2011-06-23 Thread Ben Walton

Hi All,

I have a windows 2003 server that uses EFS in a few areas.  I
understand that bacula can't handle these currently and that's fine.
I believe the use of EFS here is an inherited error that will likely
go away.

What concerns me though is that the job log indicates 'ERR=Access
denied' for each of the affected files but the status of the job is
still 'OK.'  Shouldn't this generate at least an 'OK (with Warnings)'
status?

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302


--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users