Re: [Bacula-users] RHEL6 (Bacula 5.0.0) and 'Begin pruning Jobs older than 41 years etc.'

2011-03-17 Thread Foo
On Wed, 16 Mar 2011 17:45:42 +0100, Martin Simmons mar...@lispworks.com  
wrote:

 On Wed, 16 Mar 2011 16:14:09 +0100, Foo  said:

 I understand this is a known bug but has not been fixed in the RHEL6
 packaged 5.0.0 version of Bacula yet (see
 http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg39554.html).

 It is cosmetic.

Good to hear, thanks!

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] RHEL6 (Bacula 5.0.0) and 'Begin pruning Jobs older than 41 years etc.'

2011-03-16 Thread Foo
Hi,

I understand this is a known bug but has not been fixed in the RHEL6  
packaged 5.0.0 version of Bacula yet (see  
http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg39554.html).

We're actually running a newer version (5.0.3) on Debian without this  
issue but management has decided to consolidate on Red Hat..

So is this cosmetic or should I look at installing from source or  
downloading third party (unsupported by RH) packages with newer versions  
and/or prune manually + dbcheck to trim the database while waiting for RH  
to update the version? (which might be in another 5 years..)

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows Backup Junction Point / Filesystem Question

2011-02-07 Thread Foo
On Wed, 02 Feb 2011 12:12:41 +0100, Joseph L. Casale  
jcas...@activenetwerx.com wrote:

 If not, what is the correct procedure to do this within Windows?
 How do you list the complete filesystem so that everything shows, are
 there specialist tools for this? (it appears to be impossible to access
 some dirs even if using console/administrator and explorer/DOS show a
 different view of the fs)

 http://technet.microsoft.com/en-us/sysinternals/bb896768

Thanks, but this does not explain what Bacula (or other packages) can do  
about backing up and particularly restoring junctions/reparse points. Are  
you supposed to dump a listing before a backup and recreate them by hand  
on a restore? I wonder if that is even possible for some protected areas.

--
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows Backup Junction Point / Filesystem Question

2011-02-02 Thread Foo
On Mon, 31 Jan 2011 18:24:10 +0100, John Drescher dresche...@gmail.com  
wrote:

 On Mon, Jan 31, 2011 at 12:20 PM, Randy Katz
 rk...@simplicityhosting.com wrote:
 On 1/31/2011 9:08 AM, John Drescher wrote:

 John, thanks, but this was already addressed to the list, using the  
 onefs
 option to yes takes care of
 the issue, and no, there is no other target drive other then C:.

 My point is no the onefs option does not properly fix the issue. If
 the target of the junction is on C: you do NOT want to set onefs=no
 because the data in the junction will be backed up twice then.

 Sorry, onefs=no is what I meant.


 This is generally still the wrong thing to do. Its better to include
 the target of the junction in the fileset instead of backing up
 through the juction but I guess it would work. This will cause you
 problems on disaster recovery because the junction will not
 automatically remade. If you use this method you will have to recreate
 the junctions before the restore instead of recreating junctions after
 with the onefs=yes method.

I couldn't find this in the manual, but is it even possible to  
backup/restore a Windows junction point? I.e. the junction point itself,  
not the data it points to.

If not, what is the correct procedure to do this within Windows?
How do you list the complete filesystem so that everything shows, are  
there specialist tools for this? (it appears to be impossible to access  
some dirs even if using console/administrator and explorer/DOS show a  
different view of the fs)

Or are you supposed to be resigned to using the built-in full image (i.e.  
space wasting) backup in W2K8? How do other backup solutions handle this?

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tuning Bacula

2010-10-06 Thread Foo
On Mon, 04 Oct 2010 19:37:32 +0200, Tim Gustafson t...@soe.ucsc.edu wrote:

 However, we're getting pretty pitiful throughput numbers.  When I scp a  
 file from my workstation to the Bacula server, I get something like  
 40MB/s (320Mb/s).  When Bacula runs, we're lucky to get 20MB/s  
 (160Mb/s), and we often get numbers closer to 10MB/s (80Mb/s).

Are you scp-ing one large file to establish base speed? Your average  
server's filesystem seldom allows 40 MB/s sustained because it often  
consists of many thousands of small and often fragmented files. Over time  
W2k3 suffers most from this, a defrag run or two will often yield the  
biggest speed increase of them all. Linux with ext3 is much more robust in  
this respect, although some new W2k8 servers are doing pretty well here so  
far.

As long as you are using something like an average 7200 rpm 2 disk RAID1  
setup speed will also degrade very quickly if a few other read/write  
actions are taking place at the same time simply due to seeking. The only  
solution for that is to move the main bottlenecks to memory and/or use  
SSDs. For ext3/4 you might also want to try the noatime mount option in  
/etc/fstab.

Lastly, if you depend on every server doing high speeds it will be an  
expensive exercise, you should concentrate on saturating the backup  
storage by running more than one job at the same time.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 5.0.2, backup works but errors out on the 'finishing touch' after a long time, network issue?

2010-05-25 Thread Foo
On Wed, 19 May 2010 15:00:22 +0200, Foo bfo...@yahoo.co.uk wrote:

 On Wed, 19 May 2010 12:16:40 +0200, francisco javier funes nieto
 esen...@gmail.com wrote:

 2010/5/19 Foo bfo...@yahoo.co.uk:
 May 18 17:17:49 DIRHOSTNAME bacula-sd: bsock.c:488 Packet size too big
   from client:1.2.3.4:36643. Terminating connection.

 There is some kind of tunnel (vpn, eoip, pppoe) between machines or
 different MTU in the routed interfaces of the gateway?

 The two servers are on a different subnet with a Juniper firewall in
 between that is currently set to allow all TCP and ICMP traffic through  
 in
 both directions. There is no tunnel or encapsulation of any kind that I
 know of.

 What makes me wonder is why everything else seems to work perfectly, is
 Bacula doing something different at the very end of the backup? And if  
 so,
 since one of the backups *did* succeed, whatever it is doing differently
 is not different enough every time.

The firewall is set to: admin mtu 0, operating mtu 1500, default mtu 1500

The W2K8 servers have teamed ports on Intel Gigabit VT quad port server  
adapters, jumbo frames are off, don't see any pertinent power savings  
options (servers don't go into sleep mode for example).

--

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


Re: [Bacula-users] Bacula 5.0.2, backup works but errors out on the 'finishing touch' after a long time, network issue?

2010-05-19 Thread Foo
On Tue, 18 May 2010 18:38:29 +0200, Foo bfo...@yahoo.co.uk wrote:

 18-May 18:04 DIRHOSTNAME-dir JobId 32487: Fatal error: Network error with
 FD during Backup: ERR=Connection reset by peer
 18-May 18:04 DIRHOSTNAME-dir JobId 32487: Fatal error: No Job status
 returned from FD.

Where the manually run jobs both failed, one of the scheduled nightly
jobs succeeded, the other failed in a similar fashion (same error after 2+
hours).

The one that succeeded took 32 mins 52 secs at 6.3 MB/s which is slightly
faster than the manuals so could this be some timeout limit that the other
one ran into and not this one? What do you do in such a case, add a
heartbeat?

 Is this a networking issue where some I'm done packet was lost/held up?
 If so, does this go to another port (I don't think so), or does it use a
 special protocol/form so a specific network issue may block that but not
 everything else?

Additionally, I got the following error message in mail (via logcheck):

May 18 17:17:49 DIRHOSTNAME bacula-sd: bsock.c:488 Packet size too big
   from client:1.2.3.4:36643. Terminating connection.

Anyone any ideas what this means?

--

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


Re: [Bacula-users] Bacula 5.0.2, backup works but errors out on the 'finishing touch' after a long time, network issue?

2010-05-19 Thread Foo
On Wed, 19 May 2010 12:16:40 +0200, francisco javier funes nieto  
esen...@gmail.com wrote:

 2010/5/19 Foo bfo...@yahoo.co.uk:
 May 18 17:17:49 DIRHOSTNAME bacula-sd: bsock.c:488 Packet size too big
   from client:1.2.3.4:36643. Terminating connection.

 There is some kind of tunnel (vpn, eoip, pppoe) between machines or
 different MTU in the routed interfaces of the gateway?

The two servers are on a different subnet with a Juniper firewall in  
between that is currently set to allow all TCP and ICMP traffic through in  
both directions. There is no tunnel or encapsulation of any kind that I  
know of.

What makes me wonder is why everything else seems to work perfectly, is  
Bacula doing something different at the very end of the backup? And if so,  
since one of the backups *did* succeed, whatever it is doing differently  
is not different enough every time.

--

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


[Bacula-users] Bacula 5.0.2, backup works but errors out on the 'finishing touch' after a long time, network issue?

2010-05-18 Thread Foo
Hi,

I have a couple of (W2K8) servers on a different subnet, network config is  
correct as far as I can see (routes/gateways added on both subnets, can  
ping both ways, telnet into 9102 on client from director/sd, telnet into  
9103 on sd/dir machine from clients, status client works from bconsole).

The backup commences and the volume files start getting written, bconsole  
however reports only up to the following lines:

18-May 16:38 DIRHOSTNAME-sd JobId 32487: Job write elapsed time =  
00:37:39, Transfer rate = 5.191 M Bytes/second
18-May 16:40 DIRHOSTNAME-sd JobId 32486: Job write elapsed time =  
00:39:38, Transfer rate = 5.241 M Bytes/second

Normally you get a bunch of VSS lines after that and the summary with an  
OK. The /var/working/bacula/log file does not contain the above two lines,  
only a bunch of the intermediate failures on junction points, in fact it  
freezes in mid line at some point (first other line continues there  
without newline in between, other director output continues fine  
afterwards.

status dir reports:

Running Jobs:
Console connected at 18-May-10 17:41
  JobId Level   Name   Status
==
  32486 FullHOSTNAME1.2010-05-18_16.00.56_18 is running
  32487 FullHOSTNAME2.2010-05-18_16.01.03_19 is running

The resource monitor on the hosts does not report network activity (i.e.  
an open connection) to the sd/dir, except when I do a status client on it  
(which works), and it seems like the (5.0.2) client thinks it has  
successfully finished the job:

*st client=HOSTNAME1-fd
Connecting to Client HOSTNAME1-fd at 1.2.3.4:9102

HOSTNAME1-fd Version: 5.0.2 (28 April 2010)  VSS Linux Cross-compile Win64
Daemon started 18-May-10 15:54, 1 Job run since started.
  Heap: heap=0 smbytes=131,202 max_bytes=292,179 bufs=89 max_bufs=274
  Sizeof: boffset_t=8 size_t=8 debug=0 trace=1

Running Jobs:
Director connected at: 18-May-10 17:45
No Jobs running.


Terminated Jobs:
  JobId  LevelFiles  Bytes   Status   FinishedName
==
  32486  Full 86,47012.44 G  OK   18-May-10 16:40 HOSTNAME1

*

HOSTNAME2 produces similar output.

Somewhat later they error out:

18-May 18:04 DIRHOSTNAME-dir JobId 32487: Fatal error: Network error with  
FD during Backup: ERR=Connection reset by peer
18-May 18:04 DIRHOSTNAME-dir JobId 32487: Fatal error: No Job status  
returned from FD.
18-May 18:04 DIRHOSTNAME-dir JobId 32487: Error: Bacula DIRHOSTNAME-dir  
5.0.2 (28Apr10): 18-May-2010 18:04:13
   Build OS:   i686-pc-linux-gnu debian 5.0.4
   JobId:  32487
   Job:HOSTNAME2.2010-05-18_16.01.03_19
   Backup Level:   Full (upgraded from Incremental)
   Client: HOSTNAME2-fd 5.0.2 (28Apr10)  
Linux,Cross-compile,Win64
   FileSet:Windows HOSTNAME2 set 2010-05-18 16:01:03
   Pool:   Pool_HOSTNAME2 (From Job resource)
   Catalog:MyCatalog (From Client resource)
   Storage:HOSTNAME2_storage (From Job resource)
   Scheduled time: 18-May-2010 16:01:01
   Start time: 18-May-2010 16:01:05
   End time:   18-May-2010 18:04:13
   Elapsed time:   2 hours 3 mins 8 secs
   Priority:   10
   FD Files Written:   0
   SD Files Written:   85,253
   FD Bytes Written:   0 (0 B)
   SD Bytes Written:   11,726,994,434 (11.72 GB)
   Rate:   0.0 KB/s
   Software Compression:   None
   VSS:no
   Encryption: no
   Accurate:   no
   Volume name(s): Vol_HOSTNAME2_0001
   Volume Session Id:  9
   Volume Session Time:1274189949
   Last Volume Bytes:  11,738,369,181 (11.73 GB)
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:  Error
   SD termination status:  OK
   Termination:*** Backup Error ***

Same for HOSTNAME1 (interestingly, it came right after HOSTNAME2, the  
order reversed only due to timing apparently, but they fail at exactly the  
same moment (18:04)):

18-May 18:04 DIRHOSTNAME-dir JobId 32486: Fatal error: Network error with  
FD during Backup: ERR=Connection reset by peer
18-May 18:04 DIRHOSTNAME-dir JobId 32486: Fatal error: No Job status  
returned from FD.
18-May 18:04 DIRHOSTNAME-dir JobId 32486: Error: Bacula DIRHOSTNAME-dir  
5.0.2 (28Apr10): 18-May-2010 18:04:31
   Build OS:   i686-pc-linux-gnu debian 5.0.4
   JobId:  32486
   Job:HOSTNAME1.2010-05-18_16.00.56_18
   Backup Level:   Full (upgraded from Incremental)
   Client: HOSTNAME1-fd 5.0.2 (28Apr10)  
Linux,Cross-compile,Win64
   FileSet:Windows HOSTNAME1 set 2010-05-18 16:00:56
   Pool:   Pool_HOSTNAME1 (From Job resource)
   Catalog:

Re: [Bacula-users] [Bulk] Re: Windows 2008/2008r2 Server backup

2010-05-14 Thread Foo
On Wed, 12 May 2010 13:04:20 +0200, Kevin Keane subscript...@kkeane.com  
wrote:

 No, they don't. Microsoft basically takes a very sensible position, in  
 my mind: we only provide a basic tool. If you don't like it, you can  
 get third-party tools. Think of Windows Backup (or NTBackup) as the  
 backup equivalent of Notepad.

In my eyes this boils down to a powergrab where functionality is reduced  
in order to displace third parties.

Like others I want a cross platform, flexible solution, but more  
importantly there are design, cost and security implications.

For a registry backup with ntbackup there is no change needed, using  
wbadmin requires an infrastructure change: either adding localized storage  
(for keeping one full + incrementals), inefficiently expanding storage on  
the Bacula end (for cycling full backups) or giving machines access to the  
Bacula back end. These have cost, (network) design and security  
implications, any one of which will prohibit using wbadmin here.

--

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


Re: [Bacula-users] [Bulk] Re: Windows 2008/2008r2 Server backup

2010-05-12 Thread Foo
On Tue, 11 May 2010 15:59:32 +0200, Koldo Santisteban  
ksantiste...@gmail.com wrote:

 Foo, could you explain wich product is ADS??  is open source?

It stands for Automated Desployment Service (and by now has been replaced  
by WDS, where W=Windows), you should be able to download it somewhere off  
the M$ site.

It's not open source of course but was free to download/use, last I heard.  
There are probably other solutions, this was implemented by a Windows  
oriented colleague so I don't know that much about it. It basically uses a  
DHCP server and PXE for an initial loader which then downloads  
pre-prepared images that can be scripted for various installations (so you  
might have a base W2K3 install which asks whether you want to make it a db  
or webserver).

--

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


Re: [Bacula-users] Windows 2008/2008r2 Server backup

2010-05-12 Thread Foo
On Wed, 12 May 2010 06:51:42 +0200, Kevin Keane subscript...@kkeane.com  
wrote:

 The system state in Windows 2008 is really the whole C: drive plus a  
 little extra information (I assume, boot sectors or the like).

Do you know if they have a replacement for ntbackup or a similar tool that  
does the same thing? I.e. only back up registries and other files that  
Bacula has problems with?

--

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


Re: [Bacula-users] Database version problems caused Ubuntu 10.04 upgrade to abort

2010-05-12 Thread Foo
On Wed, 12 May 2010 00:15:53 +0200, David Edwards  
davidaedwa...@optusnet.com.au wrote:

 Hi. I ran the Ubuntu 10.04 upgrade the other day (from 9.10) and it fell  
 over at the bacula update stage. It was complaining about the database.

 So I'm guessing the DB upgrade hasn't worked.

 I've downloaded the 3.0.3 and 5.0.1 gzip files and extracted the  
 updatedb directories. I can see lots of scripts to update the DB. My  
 questions are
 1. Do I need to update the DB from v10 to v11 before updating to v12?

Probably a good idea. I just did the same, went from 2.4.3 to 3.0.3, then  
to 5.0.2. Used ./configure + options, make, src/cats/update_mysql_tables,  
make install, then went on to next version and did the same (ran with  
3.0.3 for a few days to check).

The first make will compile stuff so you need a compiler, but it will also  
fill in the .in templates with your setup stuff. For your situation it's  
probably best if you don't run make install, just configure, make and the  
table update script from 3.0.3, then do the same with 5.0.2, then use  
aptitude to install the official package.

The various generic update scripts check what db you have, I just ran the  
mysql one directly. You may need to run the scripts as root or add your db  
pass somewhere (maybe as a command line argument), not sure about that.

--

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


[Bacula-users] Mail error: bsmtp cannot find libbac-5.0.1.so after upgrade from 3.0.3 to 5.0.2

2010-05-12 Thread Foo
Just a FYI if someone else runs into this:

after upgrading from 2.4.3 to 3.0.3 and then to 5.0.2 I'm getting  
(ironically) the following mail from logcheck:

May 12 11:45:10 HOSTNAME bacula-dir: 12-May 11:45  Message delivery ERROR:  
Mail prog: /sbin/bsmtp: error while loading shared libraries:  
libbac-5.0.1.so: cannot open shared object file: No such file or directory

May 12 11:45:10 HOSTNAME bacula-dir: 12-May 11:45  Message delivery ERROR:  
Mail program terminated in error. CMD=/sbin/bsmtp -h mailgw -f 'Bacula  
bacula-...@domain' -s Bacula: Backup OK of OTHERHOST-fd Incremental  
f...@domain ERR=Child exited with code 127

But it does exist:
-rwxr-x--- 1 root root 1010330 2010-05-12 11:11 /usr/lib/libbac-5.0.1.so


The fix was to do a chown root:bacula on /usr/lib/libbac*

The bacula group has the bacula-dir and -sd users in it here, as well as  
some people who need to run bconsole (so executables like /sbin/bconsole  
are all also root:bacula)

Not sure if this is handled correctly by packaging, I used source for all  
versions so far.

--

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


Re: [Bacula-users] Windows 2008/2008r2 Server backup

2010-05-11 Thread Foo
On Tue, 11 May 2010 01:51:52 +0200, James Harper
james.har...@bendigoit.com.au wrote:

 With full VSS support, VSS defines the files that make up the system
 state backup - it's a flag on the writer. Bacula handles junction
 points perfectly.

Does this also go for W2K3 now, i.e. is this a feature of Bacula 5.x, or
of W2K8?

At least I haven't succeeded in backing up junction points properly under
W2K3 yet (e.g. .net dirs), they are backed up as physical files and on a
restore replace junction points (and therefore probably break stuff on an
update). My understanding so far was that it's best to manually reinstall
.net (and any other similar stuff) for this reason.

--

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


Re: [Bacula-users] [Bulk] Re: Windows 2008/2008r2 Server backup

2010-05-11 Thread Foo
On Tue, 11 May 2010 10:11:17 +0200, Henrik Johansen hen...@scannet.dk  
wrote:

 If you are storing your system state backup on C you'll need to apply
 the reg fix as pointed out in http://support.microsoft.com/kb/944530  
 first.

Thanks for the fix, but even with that:

wbadmin START BACKUP -backupTarget:D: -systemState -exclude:C:,D:  
-include:d:\temp.txt
..
The backup storage location is invalid. You cannot use a volume that is  
included in the backup as a storage location.

(I was trying to work around not being able to exclude the C: and D:  
volumes, temp.txt is a dummy file)

If I just use:

wbadmin START SYSTEMSTATEBACKUP -backupTarget:D:
..
This will back up the system state from volume(s) System Reserved (100.00  
MB),Local Disk(C:),Local Disk(D:) to D:.

And this results in 6+ GB of data in 2 small and 1 large .vhd file.  
Astonishingly, the logfile does not actually contain any registry hive  
that I can see (e.g. ntuser.dat files).

Apparently the default systembackup job includes *all* local volumes and  
*excludes* what it's supposed to backup. #...@$# Microsoft...

Does anyone know how to fix this mess? Can you simply forget about wbadmin  
and have Bacula-fd back up live registry hives (because it should be VSS  
aware right?) - and restore them when needed?

--

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


Re: [Bacula-users] Windows 2008/2008r2 Server backup

2010-05-11 Thread Foo
On Tue, 11 May 2010 14:30:09 +0200, Martin Simmons mar...@lispworks.com  
wrote:

 You might want to consider having two backups, for different purposes.   
 Use a Windows full backup for disaster recovery and Full+Incremental  
 Bacula backups for per-file recovery.

We already have ADS for disaster recovery for W2K3, if it also supports  
W2K8 it would be a better idea. Or just plain dd as far as I'm concerned :)

The point is to integrate this into the regular Bacula framework and  
schedules, so I either need something like ntbackup which extends Bacula  
in just the right way or something that can completely replace it.

If it's just not possible for W2K8 maybe a different backup product is a  
better solution.

--

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


Re: [Bacula-users] [Bulk] Re: Windows registry restore possible?

2010-05-07 Thread Foo
On Thu, 29 Apr 2010 06:49:06 +0200, Craig Ringer  
cr...@postnewspapers.com.au wrote:

 Win7 and win2k8 offer an excellent built-in image backup system that
 makes proper use of VSS to get a consistent copy,

We have some W2K8 servers running here but not backing them up yet (just  
upgraded Bacula from 2.4.3 to 3.0.3, clients still on 2.4.4) so no  
experience with them in that respect.

Under W2K3 I use ntbackup to back up the registry, on W2K8 I played around  
with wbadmin but can't get it to do the same as this:

ClientRunBeforeJob = if [%l]==[Full] (ntbackup backup systemstate /F  
c:\\systemstate.bkf)
ClientRunAfterJob = del c:\\systemstate.bkf
ClientRunAfterJob = del \c:\\Documents and Settings\\Default User\\Local  
Settings\\Application Data\\Microsoft\\Windows  
NT\\NTBackup\\data\\backup*.log\

Are you also talking about wbadmin and if so what am I missing?

Issues with wbadmin I have are:

1) on the command line I tried to make it back up to a local device which  
it refuses so I need to specify a share on another machine, then copy back  
the backup before letting Bacula at it

2) thinking I may need to define a schedule first (so it does not include  
local drives and therefore can back up to a local drive which is now not  
included in the backup), in the GUI I selected 'system state' only but  
this seems to include all files instead of just necessary system  
files/registry hives (I canceled while it was still bust racking up more  
than 6 files).

--

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


Re: [Bacula-users] Upgrade path from 2.4.x to 5.0.x

2010-05-07 Thread Foo
On Tue, 27 Apr 2010 15:25:57 +0200, Martin Simmons mar...@lispworks.com
wrote:

 On Tue, 27 Apr 2010 14:15:35 +0200, Foo  said:

 Is Bacula 2.4.4 dir/sd compatible with a newer database layout (11, 12,
 whatever?) or do I need to update the dir/sd executables at the same  
 time?

 They are incompatible so you must do it at the same time.  I suggest  
 making a
 dump of the database first, because there is no way to undo the update
 scripts.

Thanks, upgraded database to version 11 and dir/sd/fd 2.4.3 on server to  
3.0.3,
left other clients on 2.4.4, so far everything working fine.

Will probably do the same to 5.0.2 next week and then look at upgrading
clients.

 I think you need to run configure with the appropriate args, rather than  
 make.

 It might be easier to do it by hand, replacing @SQL_BINDIR@ and  
 @db_name@ by
 the appropriate values (something like /usr/bin and bacula).

configure turned out to be easier :) As before with 2.4.3 I just can't get
readline instead of conio compiled into bconsole, but it's not a huge loss.

-8-
On Tue, 27 Apr 2010 15:57:44 +0200, Matija Nalis mnalis+bac...@carnet.hr
wrote:

The issue is in MySQL, as its algorithm sometimes chooses terribly
wrong index, so SELECT times go up easily from 5 minutes to more than
20 hours.

That would not be very nice in the middle of an emergency when it's needed
most urgently. Is there a standardized way to crossgrade to postgres
without losing all your current backups? I need to upgrade since staying
with 3.x would mean that new installations with newer clients in their
repos would need to be downgraded and that outside their regular packaging
systems too.

I suppose you would need to install the pgsql packages, configure and make
Bacula for postgres and run some convert db script before using make
install?

--

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


Re: [Bacula-users] [Bulk] Re: Windows registry restore possible?

2010-04-28 Thread Foo
On Wed, 28 Apr 2010 07:07:43 +0200, Thomas Mueller tho...@chaschperli.ch  
wrote:

 Am Tue, 27 Apr 2010 12:50:30 -0400 schrieb jdb:

 Is it possible to restore just the registry without restoring the entire
 backup?  I have the VSS enabled in the Bacula config, [..]

 VSS does provide a consistent snapshot. IMHO the VSS Writer loglines
 just mean that the Service xyz was informed about a snapshot that will
 happen so that Service xyz can get into a consitent state on disk.

 this does not mean that anything is written an tape/volume.

Right, for W2K3 use ntbackup (heard it was not in W2K8 anymore, anyone  
know the replacement?) to back up the system state, which should include  
registry files. For this I added in my job definitions:

ClientRunBeforeJob = if [%l]==[Full] (ntbackup backup systemstate /F  
c:\\systemstate.bkf)
ClientRunAfterJob = del c:\\systemstate.bkf
ClientRunAfterJob = del \c:\\Documents and Settings\\Default User\\Local  
Settings\\Application Data\\Microsoft\\Windows  
NT\\NTBackup\\data\\backup*.log\

This runs the commands on the server and does a compare, if backup level  
is full then does an ntbackup (so not on 'incremental==full' etc.) and  
deletes the temp files afterward (systemstate is overwritten but it takes  
up space, logs keep piling up otherwise). You need to have a few hundred  
MB free on C: for the systemstate.bkf file and the full backups take a few  
minutes longer.

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


Re: [Bacula-users] Upgrade path from 2.4.x to 5.0.x

2010-04-27 Thread Foo
On Mon, 26 Apr 2010 20:06:43 +0200, Martin Simmons mar...@lispworks.com
wrote:

 I suggest checking your current db version by
 select * from version;

Version 10.

Is Bacula 2.4.4 dir/sd compatible with a newer database layout (11, 12,
whatever?) or do I need to update the dir/sd executables at the same time?

 and then running the appropriate scripts from the updatedb directory of  
 the source code (not the compiled packages) and then the one from 5.0.1  
 (which is not the updatedb directory).

I see some .in files which look like template scripts, I presume I need to
'make' before these are filled in?

--8--

On Mon, 26 Apr 2010 15:57:53 +0200, Matija Nalis mnalis+bac...@carnet.hr
wrote:

 Also, can I expect problems if I added some extra indexes for speed and
 whatever tables/indexes were added by webacula?

 yes, you can expect problems :)

 For example,
 http://wiki.bacula.org/doku.php?id=faq#restore_takes_a_long_time_to_retrieve_sql_results_from_mysql_catalog
 http://wiki.bacula.org/doku.php?id=faq#jobs_with_accurate_filesets_take_forever_deprecated
 http://bugs.bacula.org/view.php?id=1472

Thanks, I'll see what I can remove. Can't access the last link though.

The indexes did help a lot with dbcheck though, without them it takes days
to complete instead of minutes, will this speed up in 3.x/5.x or has
dbcheck been updated, is it not necessary anymore, or is this something
that needs to be fixed in a future release?

I have the following indexes on File currently:

Non_unique  Seq_in_index
|| Key_name   | | | Column_name | Cardinality
|++ | +-+
0| PRIMARY| 1 | FileId  | 6387461
1| JobId  | 1 | JobId   |2750
1| JobId  | 2 | PathId  |  638746
1| JobId  | 3 | FilenameId  | 6387461
1| File_JobId_idx | 1 | JobId   |2750
1| File_PathId_idx| 1 | PathId  |  206047
1| File_FilenameId_idx| 1 | FilenameId  |  912494
1| File_FilenameId_PathId_idx | 1 | FilenameId  |  912494
1| File_FilenameId_PathId_idx | 2 | PathId  | 2129153

Collation are all A, Sub_part, Packed are all NULL, Null and Comment are
all empty, Index_type is all BTREE

Which of these can be deleted exactly? (and how, I'm not a DBA :)

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


[Bacula-users] Upgrade path from 2.4.x to 5.0.x

2010-04-26 Thread Foo

Hi,

which MySQL update scripts from which archives do I need to run to go from  
2.4.4 to 5.0.1, can I skip minor revisions and just run the ones from  
3.0.3 and 5.0.1 or are there other db changes between say 3.0.0 and 3.0.3a?

Also, can I expect problems if I added some extra indexes for speed and  
whatever tables/indexes were added by webacula?

BTW, maybe I missed something, but whatever happened to 4.x?

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


Re: [Bacula-users] Windows restore on different drive

2009-06-08 Thread Foo
On Wed, 27 May 2009 02:24:00 +0200, James Harper  
james.har...@bendigoit.com.au wrote:

 I still haven't found a way to tell bacula to restore on a partition  
 different
 than C: on windows fd.
 Most of my customers have a smaller C: containing the system, and a  
 second
 drive to hold big data, so this becomes a trouble when I have to  
 restore a big
 amount of data.
 How should I write the where during restore to let it restore on
 D:\tmp\bacula-restore?

 Can't you just set the 'where' to 'D:\tmp\bacula-restore' when you do
 the restore?

The 'where' functionality of restore is somewhat broken, because it simply  
prepends the original path instead of (partially) replacing it.

- if you change 'where' to '/' (or have this as the default), the restore  
will overwrite the original.

- if you don't have '/' as default and don't change 'where',  
'c:/foo/bar.txt' from a Windows client may end up restored in a location  
like 'C:\mnt\nas\bacula\restores\c\foo\bar.txt'. To work around this you  
need separate restore stanzas for each client.

- the closest you can get to restoring in an another location is if you  
change 'where' to e.g. '/tmp' or 'd:/', in which case your '/foo/bar.txt'  
or 'c:/foo/bar.txt' backups will end up as '/tmp/foo/bar.txt' or  
'D:\c\foo\bar.txt' restores, respectively. Bacula will under no  
circumstance replace the original path, so even 'd:/foo/bar.txt' will end  
up as 'D:\d\foo\bar.txt'.


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] automating windows client installs

2009-06-08 Thread Foo
On Wed, 27 May 2009 23:55:47 +0200, Jayson Broughton  
jbrough...@truecos.com wrote:

 Surely there is an easier way to automate installs than to create
 an NSIS file from scratch.

What I eventually did:

- got Sysinternals' (now Microsoft) psexec utility from  
http://download.sysinternals.com/Files/PsTools.zip
- copy psexec, the Bacula client installer and a textfile containing one  
server per line to a central location on the network
- use 'psexec.exe @servers.txt -c winbacula-2.4.4.exe /S' to silently  
install.
- 'psexec.exe @servers.txt -c sc failure Bacula-fd reset= 3600 actions=  
restart/5000/restart/5000/restart/5000' (set FD service to restart  
automatically in case of problems).
- bash script mounting admin shares + sed the config files into shape  
(passwords, client names, IP addresses etc.)
- start the service on each server with 'psexec @servers.txt sc start  
Bacula-fd'

Do the psexec stuff in a DOS box to see the output, not all services may  
start correctly immediately etc.


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Reset webacula password

2009-05-19 Thread Foo
On Mon, 18 May 2009 18:19:48 +0200, Foo bfo...@yahoo.co.uk wrote:

 On Tue, 12 May 2009 06:25:55 +0200, Hafiz Rozali tridi...@yahoo.com
 wrote:

 Anybody know how to reset webacula password.

 Find the .htaccess password file, look for a line like 'AuthUserFile
 /etc/apache2/lalala' in your webserver config (e.g.
 /etc/apache2/conf.d/webacula).

 Then put a new password in it with 'htpasswd /etc/apache2/lalala'. This
 will of course overwrite the old password.

Sorry, this should of course be 'htpassword /etc/apache2/lalala webacula'.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Looking for client removal documentation

2009-05-19 Thread Foo
On Mon, 18 May 2009 17:05:05 +0200, Frank Altpeter  
frank.altpe...@gmail.com wrote:

 Any pointer on how to really completely remove a client would be very
 appreciated ...

See the purge and delete console commands in the manual. I've used them  
like this:

- purge volumes first (this purges filenames etc., unlike 'prune'  
regardless of retention times)
- delete volumes (from bconsole, not physically yet)
- delete the pool they belong to if no other volumes use the same pool (if  
you have separate pools for every client for example)
- reload Bacula director config in which  
client/device/fileset/job/pool/schedule/storage stanzas relating to the  
client are deleted. This needs to be done right away, e.g. 'status dir' in  
the meantime may readd the pool you just deleted because it's still in the  
config.
- edit bacula-sd.conf to remove the client, bacula-ctl-sd restart
- use dbcheck to get rid of the last remnants (dangling paths and the like)
- physically delete volume files or tape


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Reset webacula password

2009-05-18 Thread Foo
On Tue, 12 May 2009 06:25:55 +0200, Hafiz Rozali tridi...@yahoo.com  
wrote:

 Anybody know how to reset webacula password.

Find the .htaccess password file, look for a line like 'AuthUserFile  
/etc/apache2/lalala' in your webserver config (e.g.  
/etc/apache2/conf.d/webacula).

Then put a new password in it with 'htpasswd /etc/apache2/lalala'. This  
will of course overwrite the old password.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bulk] Re: thannyd earthlink.net

2009-04-08 Thread Foo
On Tue, 07 Apr 2009 22:19:54 +0200, Dan Langille d...@langille.org wrote:

 Regardless of the personal religious views, I wish to point out this
 user-configurable mailing list option:

 ###
 Avoid duplicate copies of messages?

 When you are listed explicitly in the To: or Cc: headers of a list
 message, you can opt to not receive another copy from the mailing list.
 Select Yes to avoid receiving copies from the mailing list; select No to
 receive copies.

This is useful to a degree (and set to yes by default), but the mail sent  
privately will be different as far as filtering is concerned (i.e. arrive  
in a different mailbox) and so require extra effort on the recipient's  
part.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Howto recover from a job being rerun around a summer time change

2009-04-08 Thread Foo
On Tue, 07 Apr 2009 20:23:49 +0200, Martin Simmons mar...@lispworks.com  
wrote:

 On Tue, 07 Apr 2009 16:45:54 +0200, Foo  said:

 Basically on startup Bacula needs to check the locale, get the offset  
 from
 UTC, if any, and set its internal clock to UTC, and change the offset on
 DST changes. Then use the offset for calculations involving configs/user
 output like logging.

 Doing all of those calculations doesn't solve the underlying problem,  
 which is
 that the user has entered ambiguous data by saying run this at 2:05am  
 local
 time today.  On the day of the DST change, there is no unique UTC for  
 2:05am
 local time -- it might occur twice or not at all.

I'm just guessing here but this would seem logical to me: when Bacula  
(re)loads the config, it parses the Schedule {} stanzas and puts them in  
an array, then it does a neverending sleep/check loop to see if the  
current time occurs in the array and if so executes the associated job.

I'm proposing to remap the schedule array to UTC and check against UTC  
current time. Since neither changes during the course of the year, every  
scheduled job is executed exactly once, and always - unless the config is  
changed/reloaded exactly during a DST change period, but that's up to the  
user to deal with.

The trick is while doing the mapping, you look at whether the schedule  
would fall in/on a DST change period/second or not. If so, then map it so  
it occurs on the UTC time equivalent to the 'first' local time (for  
changes backwards) or immediately after the change (for changes forwards,  
possibly offset by the same amount in the hour), i.e. a job scheduled for  
02:05 local time would occur at 02:05 364 times a year (at the 'first  
02:05' on summer to wintertime change day), and at 03:00 (or 03:05) once a  
year.

Obviously this would mean instead of having a static array as large as  
there are schedules, a dynamic array that needs to be calculated ahead of  
time for a certain period and refilled every so often (e.g. FIFO every 24  
hours). This might cost some extra memory but can be scaled if needed,  
down to 1 hour and a second basically.

 The problem is what should 2:05am mean in that case?  E.g. is it 2 hours  
 after midnight or 10 hours before midday?

It is 02:05+$offset UTC :)

 The code gets even more non-trivial when you also need to deal with clock
 adjustment as well.  See the first half of cron_tick in
 http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/cron/cron/cron.c?rev=1.20
 for example.

I haven't thoroughly read the code so I'll assume it is an example of  
dealing with time/offset changes by checking whether current time   
previous time instead of the above proposal.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Folder Exclusion... didn't work

2009-04-07 Thread Foo
On Mon, 06 Apr 2009 23:58:29 +0200, Thomas Manson  
dev.mansontho...@gmail.com wrote:

 File =  
 /usr/local/bin/scripts/bacula/excludeFolderList/machine.domain_excludeFolderList.txt

 Do you see anything wrong ?

I would experiment with putting the  outside the quotes, or omitting the  
quotes if you know the folder doesn't contain spaces.

Also in the restore section the manual says something about entering an  
empty newline to delimit the list of files when talking about taking the  
input from a file like above, so an echo   
machine.domain_excludeFolderList.txt may do something too.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Howto recover from a job being rerun around a summer time change

2009-04-07 Thread Foo
On Mon, 06 Apr 2009 19:41:52 +0200, Martin Simmons mar...@lispworks.com  
wrote:

 On Mon, 06 Apr 2009 17:34:09 +0200, Foo  said:

 The best solution would be for Bacula to translate time to UTC  
 internally
 for scheduling, everything external such as logfiles, scheduling stanzas
 in config etc. would remain in the user's locale.

 That doesn't help, because saying 2:05am local time in the config file is
 still ambiguous if the local time moves backwards by 1 hour at 3:00am.

Not really, UTC remains the same on DST changes, so internal events using  
UTC should be fine.

Basically on startup Bacula needs to check the locale, get the offset from  
UTC, if any, and set its internal clock to UTC, and change the offset on  
DST changes. Then use the offset for calculations involving configs/user  
output like logging.

 To resolve this, Bacula would have to use UTC in the config file as well.

See above.

 Alternatively, it would need some non-trivial code to deal with the
 duplicate/missing local times.

I don't see how this is not trivial code. I would assume some standard  
library/system clock routines are used for time, just put a filter routine  
in between and call that instead (hopefully this should be a search and  
replace in the code).


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Howto recover from a job being rerun around a summer time change

2009-04-07 Thread Foo
On Mon, 06 Apr 2009 23:38:38 +0200, John Lockard jlock...@umich.edu  
wrote:

 The time jumps at 2am, either forward or backward depending on
 whether you're switching to or from DST.  Most admins I know
 just completely avoid the time period from 1:00am to 3:00am.
 entirely because of the Daylight Saving Time switches.

Seriously? Usually you can work around them, 2 hours lost of every day for  
all kinds of stuff is a major issue. We have routines in place to  
compensate wherever this is an issue (like automatically adjusting awstats  
config variables twice a year for looking at IIS logs).

 If you're going to go UTC, then you should go UTC all the way
 and not worry about what local time.

If it's done properly you shouldn't care whether the server is set to UTC  
or not, an application should be perfectly capable of using local time and  
computing UTC internally and/or externally (such as logging) without user  
intervention. If anything it's not done because developers have better  
things to do (read are lazy :) - or in the case of Microsoft, well, fill  
in your favourite expletives.

Normally that's not a problem, but for something like a scheduler which  
has obvious issues with times jumping back and forward there is no excuse.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bulk] Re: thannyd earthlink.net

2009-04-07 Thread Foo
On Tue, 07 Apr 2009 07:44:26 +0200, James Harper  
james.har...@bendigoit.com.au wrote:

 Mike Holden writes:

 Dan Langille wrote:
  This is standard practice on this list.  If you wish to participate,
  please ensure you account for this practice.

 You may see it as standard practice, but it's certainly not encouraged
 practice, and probably only a handful of users do it that way (i.e.
 wrongly). Some people lazily hit reply all and don't bother to check
 what they are doing. I admit I've done it myself on occasion, either
 through haste or forgetfulness or distraction, but I do at least __try__
 to do it properly!

Couldn't agree more.


 I hit reply-all all the time. What MTA are you using that can't sort out
 duplicates for you?

The exact same complaint that Dan made (don't make your spam problem our  
spam problem) could be levelled at anyone advocating using a specific MTA  
or alternative mail service to fix duplicate replies: don't make your  
(personal) list practice our duplicate mail problem. At least do it as an  
exception, not as a rule.

 The reason I use reply-all is that the sender is not necessarily going
 to receive a copy in their inbox otherwise. They may be subscribed in
 'digest' mode, or may have their subscription configured to not receive
 a copy at all, which allows them to post and then read the messages via
 the archives.

In every such case it's their own responsility to make sure they see  
replies, and if they prefer to receive both private/list, they can ask for  
it. By your reasoning everyone reading in digest mode and quoting the  
whole digest (and top quoting, leaving everyone else to figure out message  
order, what the reply is to etc.) should also be excused.

 I imagine that wouldn't be an uncommon configuration
 either - say you were responsible for a server running Xen, also running
 Debian, using Bacula for backups, Apache as a web server, MySQL as a
 database, and PHP as a scripting engine, and occasionally asked
 questions on those mailing lists when the need arose. You'd spend half
 of your day just processing email if you actually received all of those
 lists into your inbox!

So how does receiving extra mail to process to your private, not as easily  
filtered mailbox help there? :)

The spam problem will never be solved until human nature changes. I now  
happily refer you to the 'your solution to the spam problem will not work  
because' standard form

http://craphound.com/spamsolutions.txt


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Howto recover from a job being rerun around a summer time change

2009-04-06 Thread Foo
On Sun, 05 Apr 2009 09:29:48 +0200, Kevin Keane subscript...@kkeane.com  
wrote:

 Mark V wrote:
 Two questions:
 Q1) Am I going mad or is it possible for bat to show an error that
 does not show in the bacula log file?

 I don't know

I've seen Bat hijack output away from an open bconsole, though I'm not  
sure whether this would also prevent output from appearing in the log. If  
so, I would consider it a bug. This might not be a problem if the  
concurrent connection limit is increased.

 I can see several options:

Excluding a fair chunk of backup prime time every night is silly.  
Scheduling/scripting around the specific dates for everything is too  
laborious and error prone. Fixing it by hand later is a pain if you deal  
with a lot of backups.

Setting the server to UTC seems the best option, except for something like  
Windows, which always expects the RTC to be local. We have a lot of dumb  
*IX apps that simply assume local time too, unfortunately.

The best solution would be for Bacula to translate time to UTC internally  
for scheduling, everything external such as logfiles, scheduling stanzas  
in config etc. would remain in the user's locale.

Until then maybe you can combine canceling the job with a scripted check  
for date.


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


Re: [Bacula-users] phantom filesystems in Windows

2009-04-06 Thread Foo
On Sun, 05 Apr 2009 06:20:29 +0200, Kevin Keane subscript...@kkeane.com  
wrote:

 Close, but not quite. The junction, and anything underneath, is simply
 disregarded. As John Drescher mentioned, you probably have to recreate
 it manually.

 The data itself actually doesn't even sit under the junction in the
 first place. It's somewhere else in your file system. And it would get
 backed up *in that place*.

Unless it's excluded for some other reason. I would agree this is  
unlikely, but not impossible.

 But what happens if the data has to be restored? Will the actual data be
 restored together with the junction?

 The actual data will be restored with the whatever directory it actually
 resides.

The important bit is, how do you handle the junction point? If Bacula  
doesn't understand it, like now, you can either back it up explicitly,  
which is redundant and quite possibly breaks any updates for apps that  
expect a junction point instead of a real directory (or update files in  
one location expecting the other to be in sync), or you can ignore it and  
probably break whatever is using it immediately after a restore, unless  
you know why something breaks and how to fix it.

Neither option is very good. You might argue that the latter option is  
better, since it's best to fix something immediately than to have a latent  
problem that's harder to troubleshoot later, however when you need a  
restore you tend to be under SLA, already sleep deprived etc. :)

Bacula should handle this itself intelligently: on backup note in the  
Catalog it's a junction point and then check whether the original location  
is backed up, if so do nothing else, if not, back up enough of the  
structure referenced by the junction point so that it can be restored and  
complain in warnings. Do the same in reverse for restores, i.e. restore  
junction point and if it's not in the fileset enough of the hierarchy it  
references so the structure underneath it can be restored (and possibly  
complain again).

If the intelligent bit is too much work you could possibly leave the  
junction dangling like a (soft) symlink without target in *IX, although  
I'm not familiar enough with Windows to say this will work without  
problems.


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


Re: [Bacula-users] thannyd earthlink.net

2009-04-06 Thread Foo
On Mon, 06 Apr 2009 15:54:18 +0200, Mike Ruskai than...@earthlink.net  
wrote:

 On 04/05/2009 19:11, Dan Langille wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Please do not make your spam problem *our* spam problem.  There are
 better ways to handle this.

 Please do not expect every person on this mailing list to fill out this
 webform every time they post to the list.


 No one has to do any such thing to post to this list.

 You're getting that because you're writing a message directly to me, not
 the list.

 That you routinely write both to the original sender and the list is not
 my problem.

 Something I would have been happy to explain privately, but insist on
 explaining publicly because you've posted the above to the list.

Pwned :) (sorry, couldn't resist, no offence etc. :)


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


Re: [Bacula-users] phantom filesystems in Windows

2009-04-03 Thread Foo
On Thu, 02 Apr 2009 17:57:32 +0200, John Drescher dresche...@gmail.com  
wrote:

 On Thu, Apr 2, 2009 at 11:27 AM, Kevin Keane subscript...@kkeane.com  
 wrote:
 This actually is correct behavior. If you look carefully, you will see
 that these two directories are actually not directories at all, but
 rather junction points that simply reference other directories somewhere
 else. Windows junction points are like a cross between Linux symlinks
 and Linux mounts.

 I would like to add to the OP that these should be ignored as they are  
 harmless.

They belong to .net 2.0 and can be included explicitly. If you don't, I  
would expect .net to break in some mysterious way, although it might break  
anyway if Bacula cannot restore junction points (can it?). At least I  
include them to be sure. You'll get warnings about them anyway if you  
include the whole partition, but that can be ignored.

I guess if the restore doesn't work properly, you can always reinstall  
..net (+ hotfixes/service packs) to fix it, though that's not ideal.  
Thankfully I didn't run into this so far.


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


Re: [Bacula-users] [Bulk] Re: How to list file sizes in terminated jobs

2009-03-31 Thread Foo
On Fri, 27 Mar 2009 14:17:11 +0100, Craig Ringer  
cr...@postnewspapers.com.au wrote:

 Foo wrote:
 Hi,

 I'm looking to mod query option 12 to list not just path/filename but  
 size
 too, possibly other attributes like permissions, datestamps etc.

 Is this info kept in the catalog somewhere or does Bacula parse volume
 files for this? If the latter, has anyone done any scripting to parse it
 out?


 bacula=# select lstat from file limit 10;
 lstat
 [..]
 (10 rows)

Thanks for the effort, I was kind of hoping it would be in some table in a  
usable form already so you can simply change the query select statement  
(MySQL here). My end users will not accept having to run a separate  
utility every time they need filesizes (they are already unhappy about  
having to use the console, webacula/bacula-web is on the todo list).


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


[Bacula-users] How to list file sizes in terminated jobs

2009-03-26 Thread Foo
Hi,

I'm looking to mod query option 12 to list not just path/filename but size  
too, possibly other attributes like permissions, datestamps etc.

Is this info kept in the catalog somewhere or does Bacula parse volume  
files for this? If the latter, has anyone done any scripting to parse it  
out?


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


Re: [Bacula-users] limit client console messages

2009-03-23 Thread Foo
On Thu, 19 Mar 2009 11:41:01 +0100, Ulrich Leodolter  
ulrich.leodol...@obvsg.at wrote:

 How can i limit console messages to specific client?

 If i call bconsole on clientxyz i'd like to see
 only messages related to clientxyz-fd

Don't think there is a bconsole command for this, but you could do  
something like this:
echo autodisplay on | bconsole /tmp/foo

Then grep hostname on /tmp/foo, make it a pipe for continuous use etc.  
Unfortunately only a part of the lines is prepended by the proper  
hostname, so this is only a quick workaround.

A better way is to use a script instead (or in front) of /sbin/bsmtp for  
the mailcommand facility in the Messages {} resource, since this is  
already splitting output per job.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Strange backup errors on Windows 2003, 2.4.4 fd, 2.4.3 director

2009-03-11 Thread Foo
Hi,

on one W2K3 machine (same settings as a bunch of others without problems),  
I started getting some strange errors. The job report says Backup OK with  
warnings (which is expected), the Windows console tray reports 'Error' for  
all jobs, even after restart of the bacula-fd service and a rerun of the  
job which now reports Backup OK in bconsole.

The job also does D:, so I do get some files backed up for the second day.  
The eventlog doesn't show anything bacula related, I haven't tried  
rebooting the server yet. Is the server on the fritz? What could cause  
these errors?


First day of errors:

10-Mar 00:31 hostname-fd JobId 2060:  Cannot open c:/Documents and  
Settings/foouser/ntuser.dat.LOG: ERR=The process cannot access the file  
because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open c:/Documents and  
Settings/baruser/ntuser.dat.LOG: ERR=The process cannot access the file  
because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/SoftwareDistribution/DataStore/DataStore.edb: ERR=The process  
cannot access the file because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/SoftwareDistribution/DataStore/Logs/edb.log: ERR=The process  
cannot access the file because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/SoftwareDistribution/DataStore/Logs/tmp.edb: ERR=The process  
cannot access the file because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/SoftwareDistribution/EventCache/{5C27E49F-6DF3-48C9-8A8C-71B7085753F5}.bin:
  
ERR=The process cannot access the file because it is being used by another  
process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/system32/config/default.LOG: ERR=The process cannot access the  
file because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/system32/config/SAM.LOG: ERR=The process cannot access the file  
because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/system32/config/SECURITY.LOG: ERR=The process cannot access the  
file because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/system32/config/software.LOG: ERR=The process cannot access the  
file because it is being used by another process.
..
10-Mar 00:31 hostname-fd JobId 2060:  Cannot open  
c:/WINDOWS/system32/config/system.LOG: ERR=The process cannot access the  
file because it is being used by another process.
..


Second day:

11-Mar 00:30 hostname-fd JobId 2130:  Could not open directory c:/:  
ERR=The system cannot find the path specified.



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Include or exclude /selinux?

2009-03-10 Thread Foo
Hi,

should /selinux be included or excluded from backup? I.e. is it also
dynamically created at boot or will I be left with an incomplete system if
I exclude it? By default bacula does not descend into it since it's not
the same filesystem type as the fs root (only shows up in /proc/mounts as
type selinuxfs, not when entering 'mount').

(sorry if this is duplicate, got a bounce earlier)


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


Re: [Bacula-users] Include or exclude /selinux?

2009-03-10 Thread Foo
On Tue, 10 Mar 2009 17:05:10 +0100, Frank Sweetser f...@wpi.edu wrote:

 Excluded (or, if you have onefs, not included).  /selinux is a virtual
 filesystem, similar to /proc, that is just a view into the current  
 kernel state.

Thanks, I knew it was a simple one :)



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


Re: [Bacula-users] How to force a full backup?

2009-03-06 Thread Foo
On Thu, 05 Mar 2009 21:49:41 +0100, Kevin Keane subscript...@kkeane.com  
wrote:

 Funny you say that. Yes, your version is shorted and will work. I
 actually used to have it that way.

 The reason I changed to the longer version is that now the schedule file
 is generated by a script, it's basically a simple for loop that
 generates it. One thing this lets me do is easily generate different
 scheduled so that the full backups are staggered for different clients,
 and the differentials always happen 7 days after the fulls.

Hehe, I think lots of people reinvent that wheel, I also wrote a little  
bash oneliner to stagger schedules over days/weeks:

i=0; for srv in $(cat /tmp/servers.txt); do let i++; let j=(i-1)/7+1; let  
k=($j-1)*7; let dayno=$i-$k; let p=($j-1)/4; let q=$p*4; let weekno=$j-$q;  
let tmp=8-$dayno; mainday=$(date +%a --date=$tmp day ago | sed -r  
's/(.*)/\L\1\E/'); let tmp=7-$dayno; firstday=$(date +%a --date=$tmp day  
ago | sed -r 's/(.*)/\L\1\E/'); let tmp=9-$dayno; lastday=$(date +%a  
--date=$tmp day ago | sed -r 's/(.*)/\L\1\E/'); case $weekno in 1)  
fullweek=1st; diffweek=2nd-5th;; 2) fullweek=2nd;  
diffweek=3rd-1st;; 3) fullweek=3rd; diffweek=4th-2nd;; 4)  
fullweek=4th; diffweek=5th-3rd;; esac; sed -i s+HOSTNAME+$srv+;s+Full  
1st fri+Full $fullweek $mainday+;s+2nd-5th fri+$diffweek  
$mainday+;s+sat-thu+$firstday-$lastday+ schedules/$srv.schedule; done

/tmp/servers.txt has a hostname on each line, and I include schedules  
using the @/etc/bacula/schedules/hostname.schedule format in  
bacula-dir.conf. The above expects existing dummy schedule files  
containing 'HOSTNAME', 'Full 1st fri' etc. strings, see the sed stuff,  
this can be created easily with another for loop copying a sample file.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows restore: Can not browse files

2009-03-04 Thread Foo
On Tue, 17 Feb 2009 01:34:24 +0100, Thomas Lindgaard  
tho...@it-snedkeren.dk wrote:

 cwd is: /
 $ ls
 C:/
 $ cd C:/
 cwd is: C:/
 $ ls
 /
 $

 I can not change directories for some reason... I have tried doing the
 same using the Webmin Bacula Module and the bwx-console with similar
 results.

I thought this was answered a couple of days ago, looks like you  
capitalized the drive letter, try something like this:

FileSet {
   Name = your fileset name
   Include {
 Options {
   signature = MD5
   Exclude = yes
# 1. don't use slash at the end or the directory will be ignored
# 2. explicit paths can be excluded here or in the Exclude section,  
WildDir/File (i.e. regexp) only here
# 3. only lower case drive letters and forward slashes work properly, e.g.  
File = C:\\Documents and Settings\\Administrator only allows restore of  
single files
   WildDir = c:/Documents and Settings/*/Local Settings/Temporary  
Internet Files
   WildDir = c:/Documents and Settings/*/Local Settings/History
   WildDir = c:/Documents and Settings/*/Local Settings/Temp
   WildDir = c:/Documents and Settings/*/NetHood
   WildDir = c:/Documents and Settings/*/PrintHood
 }
 File = c:/
# if you have .net 2.0, explicitly include this, it is otherwise not  
backed up (regardless, you will keep seeing an error because of the  
previous include)
 File =  
c:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a
   }
   Exclude {
 File = c:/pagefile.sys
 File = c:/Documents and Settings/All Users/Application  
Data/Bacula/Spool
 File = c:/Documents and Settings/All Users/Application  
Data/Bacula/Work
 File = c:/RECYCLER
 File = c:/WINDOWS/Temp
#   File = c:/System Volume Information
   }
}


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows restore: Can not browse or restore files

2009-02-25 Thread Foo
On Tue, 24 Feb 2009 19:18:16 +0100, Thomas Lindgaard  
tho...@homohabilis.dk wrote:

 5 Jobs, 42,937 files inserted into the tree.

 You are now entering file selection mode where you add (mark) and
 remove (unmark) files to be restored. No files are initially added,  
 unless
 you used the all keyword on the command line.
 Enter done to leave this mode.

 cwd is: /
 $ ls
 C:/
 $ cd C:/
 cwd is: C:/
 $ ls
 /
 $

 I can not change directories for some reason... I have tried doing the
 same using the Webmin Bacula Module and the bwx-console with similar
 results.

 It may just be some tiny configuration issue, but I can't figure out
 what... I have only played around with Bacula for a couple of days.

 Any ideas?

The file selection subsection is a little bit broken, my experience with  
this is that you need to know the exact syntax in both config and while  
selecting files. For example, I notice you have a capital C: while in my  
backups I have a lower case c:, maybe try using it without a slash change  
the capital to lower case (both while selecting and in your fileset for  
backup).

If all else fails and you need to get data back from already made backups  
you could try using the 'all' keyword to restore everything without  
selection (and then restore it to somewhere else so you don't overwrite  
stuff you don't want to), or use one of the bscan/bextract utils.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Difference between 'client' and 'clients' in bconsole

2009-02-18 Thread Foo
Just in case someone runs into this too:

Added a bunch of clients to the bacula-dir.conf (containing Client {}  
stanzas with Name, Address, FDPort, Catalog, Password etc. directives),  
but not yet all the other associated stuff like  
Storage/Pool/Job/Fileset/Schedule definitions for them, then did reload in  
bconsole.

- 'status clients' and 'list clients' return the defined Storage resources
- 'status client', '.client' and '.clients' return the defined Client list
- 'list client' gives an error
- 'show client' and 'show clients' return the defined Client list

- 'status storage' is an alias to 'status clients'
- 'list storage' gives an error
- 'show storage' shows detailed Storage info

I find this a little bit confusing :)


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to properly escape Linux shell commands for ClientRunBeforeJob?

2009-02-17 Thread Foo
On Mon, 16 Feb 2009 14:56:34 +0100, Frank Sweetser f...@wpi.edu wrote:

 The problem isn't that you're not escaping the shell characters,
 the problem is that there's no shell there to treat them as special  
 characters in the first place.  From the RunScript section of
 http://bacula.org/en/rel-manual/Configuring_Director.html#SECTION00143

Right, so that's probably why the redirection fails as well, thanks.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd not playing nice with time critical apps

2009-02-16 Thread Foo
On Mon, 16 Feb 2009 09:02:20 +0100, Craig Ringer  
cr...@postnewspapers.com.au wrote:

 Try setting the high priority job to -c1 (realtime) and the bacula fd to  
 -c3 (idle) priority.

Bacula is already at -c3, I'm not supposed to touch the other app,  
unfortunately. Thanks for your other suggestions, I'll forward those to  
the responsible parties as well.

 I landed up having to hack the sources of the driver for my 3Ware  
 Escalade 8500-8 to get decent I/O latency, since the driver queued up to  
 256 (!!) requests internally. This prevented Linux from pre-empting  
 already issued I/O with higher priority new I/O requests.

As much as I would like to do this kind of thing I have more pressing  
matters occupying my time :)


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to properly escape Linux shell commands for ClientRunBeforeJob?

2009-02-16 Thread Foo
On Mon, 16 Feb 2009 10:10:27 +0100, Ralf Brinkmann  
ralf.brinkm...@wemhoener.de wrote:

 (Client)RunBefore/AfterJob:
 sticking commands one after another on one line separated by semicolon
 seems not to work propperly.

Looks that way, but sticking them on separate lines doesn't work either,  
since redirection is not properly escaped either. Until someone comes up  
with an answer I have put the commands in a shell script on the local  
server, which does work.



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to send Bacula messages to different addresses based on backup job, not type

2009-02-13 Thread Foo
Hi,

Is it possible to send mail to different recipients depending on the  
backup job? I.e. operator messages and jobs backing up servers 100 to 200  
should be sent to address A, but e.g. error messages (or just all  
messages) concerning machines 110 to 120 should (also) be sent to address  
B.

I couldn't find this in the manual, so I would think it's only possible  
via an extra 'append =' directive in all message sections, and doing some  
scripting on the resulting file.




--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to properly escape Linux shell commands for ClientRunBeforeJob?

2009-02-13 Thread Foo
Hi,

I'm trying to run the following command before a backup:

svnadmin --quiet dump /var/svnrepo /tmp/svnrepo_backup.svn_dump; gzip -9  
/tmp/svnrepo_backup.svn_dump

and 'rm -f /tmp/svnrepo_backup.svn_dump.gz' after the job. When executing  
the above on the shell it works fine.

So I added in the job definition of the machine:

ClientRunBeforeJob = svnadmin --quiet dump /var/svnrepo  
/tmp/svnrepo_backup.svn_dump; gzip -9 /tmp/svnrepo_backup.svn_dump
ClientRunAfterJob = rm -f /tmp/svnrepo_backup.svn_dump.gz

This fails with:

  ClientRunBeforeJob: svnadmin: invalid option character: 9
  ClientRunBeforeJob: Type 'svnadmin help' for usage.
  Error: Runscript: ClientRunBeforeJob returned non-zero status=1.  
ERR=Child exited with code 1

Obviously the command needs some escapes lest svnadmin think all the line  
is arguments for it. So I peruse the manual and find the '' needs  
escaping.

But when I do that (or break up the svnadmin and gzip commands into two  
ClientRunBeforeJob lines), the whole svn dump will be done to standard  
out, which in short order fills up the bconsole log and since the job  
output is mailed, kills bsmtp and gets me blacklisted on the mail gateway  
for DoS-ing it :) Canceling the job doesn't stop the flood, only killing  
the bacula-fd on the SVN machine does after a while.

Does anyone know how to properly escape the above? I could probably use a  
local shell script as a single command instead, but would like to know how  
to do proper escaping for future use.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bulk] Re: How to send Bacula messages to different addresses based on backup job, not type

2009-02-13 Thread Foo
On Fri, 13 Feb 2009 13:59:02 +0100, Mike Eggleston mikee...@me.com wrote:

 On Fri, 13 Feb 2009, Foo might have said:

 Is it possible to send mail to different recipients depending on the
 backup job?

 On unix you could sent the mail to a sendmail alias, use the
 bacula-main-alias:|/opt/local/bin/parse-bacula-mail.sh syntax. The
 shell script would decide where the message should be redirected when
 the alias receives it.

Just to clarify the whole chain, output (from jobs etc.) is piped to the  
mail/operatorcommand, which is normally bsmtp with arguments, so bsmtp  
listens to stdin, adds formatted headers and sends output to the defined  
mail gateway.

I presume bsmtp doesn't look at aliases, so for the above to work you need  
to replace the mail/operatorcommand with sendmail. Wouldn't it be more  
useful to simply point the mail/operatorcommand directly to the shell  
script and put bsmtp in there with some grep + if/then constructions to  
decide what goes where? Or possibly procmail?


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Debian/Ubuntu and openssl

2009-02-12 Thread Foo
On Wed, 11 Feb 2009 21:17:33 +0100, Bill Merriam li...@billmerriam.com  
wrote:

 I would also be happy to provide the scripts for anybody that wants to
 build their own packages/repository.

I think a lot of people would appreciate this, can you add it to the Wiki?  
(http://wiki.bacula.org/doku.php?id=howtos)


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd not playing nice with time critical apps

2009-02-12 Thread Foo
On Wed, 11 Feb 2009 17:13:46 +0100, Foo bfo...@yahoo.co.uk wrote:

 On Tue, 10 Feb 2009 18:41:53 +0100, Mike Holden bac...@mikeholden.org
 wrote:

 You could also look at using iotop and iftop to check disk and network
 throughtput at the problem times to see what is going on.

Looked up iotop, unfortunately it requires kernel 2.6.20 and I'm on 2.6.18  
for the time being.


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd not playing nice with time critical apps

2009-02-11 Thread Foo
On Tue, 10 Feb 2009 18:41:53 +0100, Mike Holden bac...@mikeholden.org  
wrote:

 Foo wrote:
 Hi,

 I'm doing a backup on a Debian Etch server which runs a network/time
 critical app at -20 niceness, but even with nice -n19 bacula-fd still
 causes glitches (packetloss).

 They seem to happen when the backup starts and ends, during the backup
 (doing 20-23 MB/s) there is no problem. An incremental backup that  
 takes 5
 seconds still causes a glitch, although much smaller. Doing an 'estimate
 job=servername' via bconsole causes no glitch, but this is probably due  
 to
 caching after the backup (returns immediately with the correct answer).
 This makes me think it is disk IO related (2x15K rpm SAS drives in RAID1
 on Dell Perc/5i - backup goes to other disk array over Gb  
 Ethernet/Fiber).

 Is there a way to solve this on the Bacula side? The server is normally
 using only a few percent CPU, with bacula-fd going up to 15-25% at most,
 it's scheduling, or some disk related holdup that seems to be the  
 problem.

 If you suspect disk I/O may be a sticking point, look at using ionice.
 Works in much the same way as nice, but for limiting I/O rather than
 cpu.

Thanks, that helped, although there is still some packetloss (about a  
quarter of the previous value).

 You could also look at using iotop and iftop to check disk and network
 throughtput at the problem times to see what is going on.

I'm afraid these are too general to troubleshoot the remaining loss, since  
they deal with quantity, not quality. Unless the Bacula FD does something  
naughty it's probably some low level component that needs optimization (I  
can't touch network buffer sizes BTW, which are optimized for the main app  
running on the server).


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula-fd not playing nice with time critical apps

2009-02-10 Thread Foo
Hi,

I'm doing a backup on a Debian Etch server which runs a network/time  
critical app at -20 niceness, but even with nice -n19 bacula-fd still  
causes glitches (packetloss).

They seem to happen when the backup starts and ends, during the backup  
(doing 20-23 MB/s) there is no problem. An incremental backup that takes 5  
seconds still causes a glitch, although much smaller. Doing an 'estimate  
job=servername' via bconsole causes no glitch, but this is probably due to  
caching after the backup (returns immediately with the correct answer).  
This makes me think it is disk IO related (2x15K rpm SAS drives in RAID1  
on Dell Perc/5i - backup goes to other disk array over Gb Ethernet/Fiber).

Is there a way to solve this on the Bacula side? The server is normally  
using only a few percent CPU, with bacula-fd going up to 15-25% at most,  
it's scheduling, or some disk related holdup that seems to be the problem.


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Perception of Bacula (was: products based on bacula)

2009-02-04 Thread Foo
On Sat, 31 Jan 2009 08:02:14 +0100, Dan Langille d...@langille.org wrote:

 On Jan 30, 2009, at 3:07 PM, Arno Lehmann wrote:

 When I'm talking with the management of a potential customer, I
 neither use the tag line, nor do we read over the website together...

Right, so you filter. Which is not always possible.

 In fact, if they want to talk about those things, they probably know a
 web server called apache, whose name is also quite ridiculous.

It's not how fanciful a name is, but the (unintended) connotations.

 All product evaluation should start with a list of requirements.  We all
 know about requirements collection.  From there, you evaluate the
 available products.  Often points are awarded for various features.

In my case we are byond the requirements stage, this is about selling it  
to third parties. Incidentally, I got a reply which concisely stated that  
no third party software may be installed, so the issue was deftly avoided,  
but I'm pretty sure the above played a part.

 I have yet to see any requirements which specified  nice name or
 non-tacky by line.

Sure, but back in the real world marketing is king. The current Bacula  
marketing doesn't score points in some quarters, whether you like it or  
not (and eventually if you want to compete you have to compromise, whether  
you have 'do no evil' as your motto or not (see China)).

 We have much bigger and better fish to fry.  Worrying about potential
 users who clearly do not have their priorities in order is not on our
 top 10 list.

Hey, I'm just trying to help, illustrated with example.

 If we were out to make money, these issues have much more merit.

I thought that was the object of Bacula Systems.


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bulk] Re: How to automate Windows installer for a large number of hosts?

2009-01-29 Thread Foo
On Mon, 26 Jan 2009 18:37:58 +0100, Michel Meyers stel...@tcnnet.com  
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Foo wrote:
 Hi,

 I'm looking at a large rollout, and estimate around 16 hours of non-stop
 clicking for the Windows side of things (I've got the Linux side  
 covered).
 Is it possible to automate the Windows installer with arguments that  
 fill
 in the various fields such as hostnames, IP addresses, passwords etc.?

 If does have a /S switch (must be capital) that should make it
 auto-install the FD with the default settings. You'll have to fill in
 the config files for yourself, or somehow replace them further down in
 your script.

Thanks, this will be easier than getting into NSIS. Afterwards I will  
mount shares and use sed -i on the configs before running the service.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Perception of Bacula (was: products based on bacula)

2009-01-29 Thread Foo
Sorry, don't have the thread in my mail anymore, so new thread.

Today I got this snippet in the mail regarding permission to install  
Bacula on a subcontractor's systems:

Regarding `the count bacula', I need to escalate your request to my  
colleagues in *** to see if it can co-exist with ***. I'll let you know.

Somehow that sounds ominous. Personally I appreciate the catchphrase's  
humour, and apparently my counterpart above does too, but it also gives  
the wrong impression regarding maturity (of the product) to his PHB.

If Bacula (or more importantly Bacula Systems) wants to be perceived as  
professional, it needs to be acknowledged that engineering culture (read  
humour) is not compatible with management/business culture. IMHO it's a  
mistake to rely on the engineering layer's ability to sensibly filter this  
to management, at least the 'sucks by night' catchphrase needlessly  
complicates acceptance and has to go.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to automate Windows installer for a large number of hosts?

2009-01-26 Thread Foo
Hi,

I'm looking at a large rollout, and estimate around 16 hours of non-stop  
clicking for the Windows side of things (I've got the Linux side covered).
Is it possible to automate the Windows installer with arguments that fill  
in the various fields such as hostnames, IP addresses, passwords etc.?

If not, is it possible to take apart the installer and write new scripts  
doing this and how much work would this be? It could be a generic  
installer choosing from a plaintext file with a list of fixed hostnames,  
IP addresses and passwords, or a unique installer per server, as long as  
both can simply be copied and run silently.

I would prefer the elegant solution over the mindnumbing one, but it has  
to take less than about two full working days (for a non-developer who has  
never seen NSIS from the inside).


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Retention period definitions clashing with scheduling definitions?

2009-01-22 Thread Foo

Hi,

Just to make sure I've got this correct: Bacula does a simple calculation  
when parsing retention config options such as month=30 days*24 hours*60  
minutes*60 seconds everywhere.

An example:

maximum volumes=3 (per pool)
volume use duration=1 month
volume retention=5 weeks
file retention=2 months
job retention=2 months

Which translates to (llist volumes):

  VolRetention: 3,024,000
VolUseDuration: 2,592,000

So, Vol A is used for 2,592,000 seconds (day 1-30 day), on day 65 its  
status is changed from Append to Used (volume retention=5 weeks) and  
associated files/jobs are purged from the database on day 91. (I may have  
the status names confused)
Vol B is used from day 31-60, its status changes on day 95, file/jobs  
purge on day 121.
Vol C is used from day 61-90, its status changes on day 125. file/jobs  
purge on day 151.
On day 91, Bacula sees Vol A is the only one from the pool which can be  
recycled (status Used) and it has also just purged file/job info from the  
db so the cycle is complete, everything's fine.

Except, in the schedule section, if you use something like: Run = Full 1st  
sun at 00:30, the actual backup date can be up to 6 days later (i.e. month  
starts on a Monday, so 1st Sun is 7th day). For 2009, 1st Sun in  
Jan/Feb/Mar/Apr is 2009-01-04, 2009-02-01, 2009-03-01 and 2009-04-05.

Vol A is used from 2009-01-04 - 2009-02-02, status changed on 2009-03-09,  
files/jobs purged on 2009-04-03.
Vol B from 2009-02-03 - 2009-03-04, status 2009-04-08, purge 2009-05-03.
Vol C from 2009-03-05 - 2009-04-03, status 2009-05-08, purge 2009-06-02.

So, Vol A has a full backup on 2009-01-04 and 2009-02-01, Vol B has a  
backup on 2009-03-01 and Vol C has no backups at all. After the cycle  
rotates around and Vol B is purged, if something goes wrong you are  
basically missing a month.

Also, if you make the mistake with file/job retentions using 3 months for  
example you will also end up with warnings (and no backups) while Bacula  
is waiting to purge file/job info.

Is there any way to have Bacula keep dynamic track of weeks/months and  
interpret 'month' as 28 days for February for example?


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [RESOLVED] Mini stupid how-to restore mark all .bak file

2009-01-20 Thread Foo
On Tue, 20 Jan 2009 14:45:37 +0100, Bruno Friedmann br...@ioda-net.ch  
wrote:

 We want to restore some type of files for a determined client and we  
 have define which jobid we need.
 (you can always adjust what you need ..)

 First we create a script for bconsole
 called mybscript

 restore
 3
 9876,9877 - this is the jobid or jobids
 find *.log- the pattern searched
 unmark *  - be sure to have nothing marked
 done  - close restore
 quit  - exit bconsole

 So we launch our script by issuing a

 cat mybscript | bconsole  /tmp/my_file_searched
 (you could use tail or what you want to have the output redirected ... )
 Just check that the bacula dir user could cat this output file.

 After we edit this file to cut all lines concerning bconsole message.
 (if your log file is too big to be directly edited so can use head   
 tail to cut it cf to man)

To automate that:

cat /tmp/mybscript | bconsole | awk '/\$ unmark/{p=0};p;/\$ find/{p=1};'  
/tmp/my_file_searched

This assumes that there will be exactly one instance of $ find and $  
unmark in the file, so don't add more find statements to 'mybscript'.

 After we launch the restore
 echoing to bconsole or directly in bconsole (this will permit to change  
 destination, level, runtime etc...)

 bconsole
 restore client=YOUR-fd jobid=9876,9877 file=/tmp/my_file_searched

 the rest is normal operation like describe in documentation


 That's all folks.

 This procedure is LGPL licenced.

My addition is public domain ;)


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mini stupid how-to restore mark all .bak file

2009-01-16 Thread Foo
On Thu, 15 Jan 2009 21:15:05 +0100, Bruno Friedmann br...@ioda-net.ch  
wrote:

 Thanks foo for the script (awk is not my favorite friends and have some  
 difficulties to talk with it )

 Did you think it's possible to run this against a 5 files results.

Well, like I said it's not optimized for large volumes, just a quick  
workaround for up to a few hundred files. If you're not in a hurry you  
could run it in a screen session :) (will probably take a couple of hours)

The 'file_with_names' restore option is useful to get around the speed  
issue but even with the 'before a speficied time' bit you can't select a  
specific jobid to restore from (it probably takes the newest match before  
the time you specify from the latest set of full+differential+incremental  
backups for the particular device you select), which means you might not  
get the correct file. In either case you still need to create the file  
containing the filenames. This should really be solved by fixing  
bconsole's recursive file selection functionality.

You might also try creating a restore Job with an Include section with  
WildFile arguments or something similar, I haven't tried that.

 But I've just found a way to have an unlimited history in the new kde4  
 konsole.
 which save me ...

 Now just have to insert it in the bconsole restore command.

A copy/paste with 5 filenames is probably going to take a large amount  
of time too, and if there's even one problem (glitch where prompt doesn't  
come back in time for example) you may end up with a broken restore. I'm  
not sure how this handles special characters or spaces in filenames either.

 Really I appreciate the script, which would certainly be used one day or  
 another.

Improvements are welcome :)


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula giving slow speed

2009-01-16 Thread Foo
On Thu, 15 Jan 2009 13:31:54 +0100, Bruno Friedmann br...@ioda-net.ch  
wrote:

 Holikar, Sachin (ext) wrote:


 Hi All,

  Please find below the extract from the Bacula website(
 http://www.bacula.org/en/rel-manual/Catalog_Maintenance.html#SECTION0024
 8
 http://www.bacula.org/en/rel-manual/Catalog_Maintenance.html#SECTION002
 48   )

 They say,

 Performance Issues Indexes :

I added the following indexes:

CREATE INDEX File_JobId_idx ON File(JobId);
CREATE INDEX File_PathId_idx ON File(PathId);
CREATE INDEX File_FilenameId_idx ON File(FilenameId);
CREATE INDEX Path_PathId_idx ON Path(PathId);
CREATE INDEX Job_FileSetId_idx ON Job(FileSetId);
CREATE INDEX Job_ClientId_idx ON Job(ClientId);
CREATE INDEX File_FilenameId-PathId_idx ON File(FilenameId,PathId);

This reduced dbcheck time from 24 hours to a few *seconds*. Adding the  
indexes themselves only took up to 15 seconds, but for now the database is  
relatively small at 200 MB for the whole /var/lib/mysql/bacula dir and  
it's a decent machine (quad core Xeon 2.33 GHz machine with 4 GB of RAM).

It remains to be seen whether the added indexing will impact insert/update  
performance, but I'll take a small performance hit if it means faster  
restores and sanity checks. The bottleneck here is NAS disk throughput so  
the number of concurrent jobs is limited.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Mini stupid how-to restore mark all .bak file

2009-01-15 Thread Foo
On Tue, 13 Jan 2009 11:58:09 +0100, Bruno Friedmann br...@ioda-net.ch  
wrote:

 Sorry this seems stupid but when I enter in a restore
 I use the choice 3 ( list of jobids )

 get my / rebuild
 If I issue a find *.bak it find and list all what I want to mark and  
 restore (recurse also)
 but giving  a
 mark *.bak give  0 file marked

 help say mark dir/file to be restored recursively, wildcards allowed

The recursive behaviour is broken, as well as listing already marked files  
outside of the directory they are in, in every version I used so far (2.0  
- 2.4.3).

My workaround for this is:

- use 'list jobs' or 'list jobname=jobname to find the jobid you need,  
use '@output /tmp/foo' then 'list files jobid=nnn', then '@output' to  
dump the file list to /tmp/foo
- on a single line (hopefully not munged by the list/by browsers):
grep .bak  /tmp/foo | awk '{ gsub(/^\|\ |\ +\|$/,); print }' | awk -F  
/ '{ printf (cd \); for (i=1; iNF; i++) printf (%s/, $i); printf  
(\\n); print mark \ $NF \ }' /tmp/foo2

Note the space behind the extension, this makes sure we only get files  
that end with this (so .bak.2 and similar will not be restored). The awks  
strip leading/trailing pipes and spaces, then strip off path (using '/' as  
separator), does a cd to the path, then marks the file (NF is number of  
fields on the line, $NF is last field).

- in bconsole do restore, during file selection do '@input /tmp/foo2' -  
this will dump the file we just created above resulting in a bunch of cd  
and mark statements executed by bconsole. Use estimate or count to see how  
many files you marked, should be the same as 'wc -l /tmp/foo2'.

With lots of files this is slow, it could be optimized to cd to a dir only  
once and use wildcards for marking instead of the full filename, but  
that's left up to the reader :)


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows agent status window missing

2008-12-03 Thread Foo
On Tue, 02 Dec 2008 22:06:33 +0100, John Drescher [EMAIL PROTECTED]  
wrote:

 Is this vista? The tray does not work in vista.

It's Windows Server 2003 Standard Edition with Service Pack 2. No idea  
about XP/Vista.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows agent status window missing

2008-12-03 Thread Foo
On Tue, 02 Dec 2008 21:22:41 +0100, Jari Fredriksson [EMAIL PROTECTED] wrote:

 I have 2.4.3 fd and the status icon and window shows and works fine.

 It was never stripped.

Thanks for confirming that, what version of Windows do you use?


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows agent status window missing - SOLVED

2008-12-03 Thread Foo
On Tue, 02 Dec 2008 16:45:39 +0100, Foo [EMAIL PROTECTED] wrote:

 Hi,

 in the Windows FD version 2.2.6 you got a systray icon which when
 doubleclicked showed the job status, with Windows FD version 2.4.3 you
 just get the service running in the background.

I found the reason: the icon is only visible on the console, and not when  
logging in via remote desktop.
You need to add /console to the remote desktop arguments (or -0 if you use  
rdesktop from a Linux client), it will show up then.

Maybe you guys could test this with Vista as well, I stay well away from  
it :)


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Windows agent status window missing

2008-12-02 Thread Foo
Hi,

in the Windows FD version 2.2.6 you got a systray icon which when
doubleclicked showed the job status, with Windows FD version 2.4.3 you
just get the service running in the background.

Was this functionality stripped between 2.2.6 and 2.4.3 or is there a way
to make it appear again? I actually prefer the systray icon's absence, but
would like a way to make the status window (temporarily) appear again. Or
am I doing something wrong?

(first message posted via POP client, please excuse any irregularities)


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Concurrent backups to disk

2007-12-10 Thread Foo Bar

--- John Drescher [EMAIL PROTECTED] wrote:

  BTW, a number of my questions regarding using VSS, OpenSSL encryption
 and
  rescue CDs has gone unanswered, does noone have experience with these
 or
  have I offended someone? I'm trying to Google and read the manual as
 much
  as possible before giving up and posing the question here, if the
 answers
  are in the manual a reference to the chapter would already help a lot.
 
 I have seen all of these questions and the problem for me was that I
 did not know the answer. I do use VSS but never looked into what it
 does for the registry especially with windows 2003 clients since I
 only have one of these.

Thanks for the reply, hopefully someone with experience on these issues
will have some input for me. Right now I can't roll out Bacula because of
these stumbling blocks.


  ___
Support the World Aids Awareness campaign this month with Yahoo! For Good 
http://uk.promotions.yahoo.com/forgood/

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Concurrent backups to disk

2007-12-06 Thread Foo Bar
Hi,

according to the manual, you need to create more devices for concurrent
backups to disk since Bacula regards everything as tapes, so a single
Device  will block until each individual job to it is finished.

I'm a little unclear on what new sections I need though, presumable a
number of 'Device {}' sections in bacula-sd.conf (or one per job if I
absolutely want to be able to do concurrent backups of any combination of
jobs, right?), but do these need to have unique Names, Media Types, and do
I need one new 'Storage {}' section for each of these in bacula-dir.conf?
Can these have the same keys for communication?

Or am I off base and can I just add new 'Archive Device' lines in the
Device {} section of bacula-sd.conf instead and create symlinks to the
directory I'm backing up in?

BTW, a number of my questions regarding using VSS, OpenSSL encryption and
rescue CDs has gone unanswered, does noone have experience with these or
have I offended someone? I'm trying to Google and read the manual as much
as possible before giving up and posing the question here, if the answers
are in the manual a reference to the chapter would already help a lot.


  __
Sent from Yahoo! - the World's favourite mail http://uk.mail.yahoo.com


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restoring encrypted backups with Recovery CD

2007-11-27 Thread Foo Bar
Can someone please tell me whether I can use the Rescue CD to restore
encrypted backups?

According to the docs the precompiled/packaged versions don't have OpenSSL
support but it doesn't say for the Knoppix subdir.

Since all my backups are encrypted, how do I do a bare metal recovery if
there is no support for it on the rescue CD? Can the binary that's put into
the iso image be supplanted by one I compile myself, but with OpenSSL support?


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] All the problems with Bacula

2007-11-22 Thread Foo Bar

--- Robert LeBlanc [EMAIL PROTECTED] wrote:

 On 11/21/07 7:11 AM, Foo Bar [EMAIL PROTECTED] wrote:
 
  all set up (I can't get BAT to compile for example, hopefully the
 Debian
  stable package will be updated soon).
  
 
 Debian stable will never get the new version until Lenny is released as
 stable. I've used the testing and sid packages in Lenny without any
 problems. Beware that 2.2.5 is stuck in sid until the new version of qt4
 fixes dependencies.

For stability reasons I cannot run unstable/testing on production servers,
and I prefer not to on my own machines.

I did download depkgs-qt/qwt-5.0.2, compiled qt4 from source
(/usr/local/Trolltech/Qt-4.3.0/) and whatnot but am still getting errors
while compiling BAT (undefined reference this and that). I'm clueless on
fixing this myself and cannot spend the time to learn.


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] MaxVolBytes 1?

2007-11-22 Thread Foo Bar

Foo Bar [EMAIL PROTECTED] wrote:

 Foo Bar [EMAIL PROTECTED] wrote:
 
  [..]
  I will of course label at least one new volume, but out of curiosity,
when,
  if ever, will the single volume I have now be recycled and reused? Was
it
  blocked because of the 1 byte limit I set yesterday and should it work
  during the backup tonight? (or after 16 hours, whichever comes first)
 
 I meant to say 8 hours here. Found in the documentation that it will keep
 trying for at most a day, at which point I presume it will be cancelled
 and other jobs behind it will continue, so some of my questions will be
 answered tomorrow.

The job warned again after 16 hours, so it didn't cancel itself. I found
how to update the volume from Error to Append again ('update volume') and
when I manually canceled the job the volume was recycled and written to
again.

Now I had a new problem, due to the 1 GiB limit I set, the job blocked
again during the backup. Instead of canceling it, I removed the limit in
the config file, did a reload and update, which didn't do much so this time
I stopped and restarted the bacula-director process. Now, using 'status
dir' the job listing doesn't show any running jobs (all scheduled/waiting
jobs are gone), but using 'status client' the job seems to be still running
(showing the filename where it stopped due to the volume byte limit).

When trying to use 'cancel' it says there are no jobs running. How do I fix
this?

Still remaining questions:

  - why does the job output say 2 files were deleted from the catalog
when
  there were many thousands of files (in dozens of jobs) in the volume
  (and catalog) already?

  - how do I make sure such an error does not block any other backups
  without resorting to parallel backups and/or autolabeling?



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] MaxVolBytes 1?

2007-11-22 Thread Foo Bar
Solved the issue of the ghost-job by running dbcheck (which fixed thousands
of orphaned files/paths, probably from previous tests), then
stopping/restarting the involved storage and file daemons.

This list is really helpful ;) (well, I only read about 200 pages of the
manual so far and saw dbcheck mentioned)

Foo Bar [EMAIL PROTECTED] wrote:

 I stopped and restarted the bacula-director process. Now, using 'status
 dir' the job listing doesn't show any running jobs (all scheduled/waiting
 jobs are gone), but using 'status client' the job seems to be still
 running
 (showing the filename where it stopped due to the volume byte limit).
 
 When trying to use 'cancel' it says there are no jobs running. How do I
 fix this?


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] MaxVolBytes 1?

2007-11-21 Thread Foo Bar
Additional info: Bacula 2.2.6 on Debian 4.0, /mnt/bacula is mounted using
smbfs on a W2K3 NAS gateway.

--- Foo Bar [EMAIL PROTECTED] wrote:

 Hi,
 
 after changing the pool settings for a volume (from 365days retention to
 2,
 lowering the number of bytes to 1 GB max etc.) and doing an 'update
 volume', the output of 'llist volume' shows MaxVolBytes: 1 where it was
 MaxVolBytes: 0 before.

I found this is due to using commas in the Pool definition, which I changed
now:

Pool {
  Name = Pool_foo_full
  Pool Type = Backup
  Volume Use Duration = 7d
## this results in MaxVolBytes 1 instead of 1 GiB:
##  Maximum Volume Bytes = 1,073,741,824
  Maximum Volume Bytes = 1073741824
  Maximum Volume Jobs = 8
  Volume Retention = 2 days
  Recycle Oldest Volume = yes
  Purge Oldest Volume = yes
  Recycle = yes
  AutoPrune = yes
}

However, before changing it this morning (and doing update volume) the job
ran last night and the following happened:

21-Nov 01:45 foo-dir JobId 499: No prior Full backup Job record found.
21-Nov 01:45 foo-dir JobId 499: No prior or suitable Full backup found in
catalog. Doing FULL backup.
21-Nov 01:45 foo-dir JobId 496: Start Backup JobId 496,
Job=foo_fulltest.2007-11-21_01.45.06
21-Nov 01:45 foo-dir JobId 496: Max Volume bytes exceeded. Marking Volume
Vol_foo_full as Full.
21-Nov 01:45 foo-dir JobId 496: Purging oldest volume Vol_foo_full
21-Nov 01:45 foo-dir JobId 496: 2 Files on Volume Vol_foo_full purged
from catalog.
21-Nov 01:45 foo-dir JobId 496: There are no more Jobs associated with
Volume Vol_foo_full. Marking it purged.
21-Nov 01:45 foo-dir JobId 496: All records pruned from Volume
Vol_foo_full; marking it Purged
21-Nov 01:45 foo-dir JobId 496: Using Device NAS_mount
21-Nov 01:45 foo-sd JobId 496: User defined maximum volume capacity 1
exceeded on device NAS_mount (/mnt/bacula).
21-Nov 01:45 foo-sd JobId 496: Error: label.c:485 Unable to write device
NAS_mount (/mnt/bacula): ERR=
21-Nov 01:45 foo-sd JobId 496: Marking Volume Vol_foo_full in Error in
Catalog.
21-Nov 01:45 foo-sd JobId 496: Job foo_fulltest.2007-11-21_01.45.06
waiting. Cannot find any appendable volumes.
Please use the label  command to create a new Volume for:
Storage:  NAS_mount (/mnt/bacula)
Pool: Pool_foo_full
Media type:   NAS_File

The last bit is repeated after 1, 2 and 4 hours.

I had a single Vol_foo_full volume which was 11 GB (lots of
full/incremental backups before changing max size/duration/retention
settings) which changed to 0 bytes during the above.

I will of course label at least one new volume, but out of curiosity, when,
if ever, will the single volume I have now be recycled and reused? Was it
blocked because of the 1 byte limit I set yesterday and should it work
during the backup tonight? (or after 16 hours, whichever comes first)

Couple more questions:
- why does the job output say 2 files were deleted from the catalog when
there were many thousands of files (in dozens of jobs) in the volume (and
catalog) already?
- how do I change the Volume's 'Error' status to 'Append' again? (will a
manual cancel job do it for example?)
- how do I make sure such an error does not block any other backups without
resorting to parallel backups and/or autolabeling?
- if this job runs OK tonight the other jobs that are waiting behind it
(scheduled to be run at the same time once a day) will presumably run, but
will they run again immediately due to the schedule? Or if they take a few
minutes, will passing the scheduled time mean they are not executed?


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] MaxVolBytes 1?

2007-11-21 Thread Foo Bar

--- Alan Brown [EMAIL PROTECTED] wrote:

 On Wed, 21 Nov 2007, Foo Bar wrote:
 
  Additional info: Bacula 2.2.6 on Debian 4.0, /mnt/bacula is mounted
 using
  smbfs on a W2K3 NAS gateway.
 
 Why not put a bacula client directly on the NAS head?

Various reasons, chief amongst which support contracts. I see this as a
complication anyway, Samba does what I need without installing and
configuring an extra daemon.


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] All the problems with Bacula

2007-11-21 Thread Foo Bar

--- Dan Langille [EMAIL PROTECTED] wrote:

 On 21 Nov 2007 at 8:07, Shon Stephens wrote:
 
  Ok. This is a rant and you can remove it from the list if you want to
  later. I just have to vent.
  
  Bacula is incredibly complex to setup. Its taken 4 months and its
  still not working correctly.
 
 You are unique.

Not really, I've been at it for 2 months too now, although I'm admittedly
very busy so haven't exactly spent all my time on it.

I have mostly problems with documentation and the learning curve, which is
especially going to be a problem for those that will use it once I get it
all set up (I can't get BAT to compile for example, hopefully the Debian
stable package will be updated soon).

I'm not going to list everything I have trouble with, I'll just keep asking
questions and hopefully someone will answer, since I have not given up on
Bacula yet :)


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] All the problems with Bacula

2007-11-21 Thread Foo Bar

--- John Drescher [EMAIL PROTECTED] wrote:

  I have mostly problems with documentation and the learning curve, which
 is
  especially going to be a problem for those that will use it once I get
 it
  all set up (I can't get BAT to compile for example, hopefully the
 Debian
  stable package will be updated soon).
 
 BAT is a very recent addition to bacula (written mostly by a single
 developer in his free time)  so it has not gone through the kind of
 testing that the other parts of the system have that have been around
 for years.

I understand and don't expect miracles, just saying that Bacula currently
lacks in the ease of use department for those that can't learn it inside
out. For me that means I need a GUI for some colleagues and wouldn't mind
using it myself instead of the console.


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Can Bacula-rescue 2.2.6 Knoppix use OpenSSL?

2007-11-21 Thread Foo Bar
If I sent an empty mail previously my apologies, pushed the wrong button.

Since I'm working with remote machines I'm looking at the Knoppix CD with
ISO image creation instead of the generic Linux one which seems to want to
burn a physical disc.

The documentation of bacula-rescue says not to use OpenSSL when building
the Linux rescue CD, is this also the case for the Knoppix based image?

If so, then since my backups are encrypted with OpenSSL, is it even
possible to use a rescue CD to restore?


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to use VSS to backup registry

2007-11-20 Thread Foo Bar
Hi,

for a Windows 2003 agent I see various lines with VSS Writer
(BackupComplete) and System Writer, Event Log Writer, Registry Writer,
MSDEWriter, WMI Writer, BITS Writer and  COM+ REGDB Writer in them, all
followed by State: 0x1 (VSS_WS_STABLE).

However for FD/SD bytes written I see 0, so the entire (incremental) backup
didn't backup anything. This to me indicates that VSS is available but not
used. How do I explicitly use VSS to actually back up the contents of the
registry or Event Log for example? And how do I restore them, are they
separate special files in the backup or similar?


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] MaxVolBytes 1?

2007-11-20 Thread Foo Bar
Hi,

after changing the pool settings for a volume (from 365days retention to 2,
lowering the number of bytes to 1 GB max etc.) and doing an 'update
volume', the output of 'llist volume' shows MaxVolBytes: 1 where it was
MaxVolBytes: 0 before.

I would have expected the 1,xxx,xxx,xxx number I set in the Pool defaults
instead of 1, is this as it's supposed to be? The volume is still labeled
Append although it has more bytes in it than the limit I set.


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to see which volumes are in which pools?

2007-10-31 Thread Foo Bar

--- Thomas Glatthor [EMAIL PROTECTED] wrote:

 *query

Thanks (Arno as well), it's all so simple when you know where to look :)


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to see which volumes are in which pools?

2007-10-30 Thread Foo Bar

--- Thomas Glatthor [EMAIL PROTECTED] wrote:

 list pools and list volumes will help

Ah, thanks, I must be blind :)

 you can also add custom queries to the bconsole by editing this file:
 
 # cat /etc/bacula/bacula-dir.conf | grep QueryFile
QueryFile = /etc/bacula/scripts/query.sql

How do you call the SQL statements from this?


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to see which volumes are in which pools?

2007-10-30 Thread Foo Bar

--- Thomas Glatthor [EMAIL PROTECTED] wrote:

 list pools and list volumes will help

Ah, thanks, I must be blind :)

 you can also add custom queries to the bconsole by editing this file:
 
 # cat /etc/bacula/bacula-dir.conf | grep QueryFile
QueryFile = /etc/bacula/scripts/query.sql

How do you call the SQL statements from this?


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to see which volumes are in which pools?

2007-10-29 Thread Foo Bar
Hi,

Is there a way to see which volumes are present/known about by Bacula and
which Pool they belong to? Or for that matter which Pools are available,
although I can see that from looking at the configuration (but other users
without that privilege might not). If this involves SQL statements, how do
I add it to a command that can be executed from within bconsole?


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to purge files from a volume?

2007-10-05 Thread Foo Bar

--- Rich [EMAIL PROTECTED] wrote:

 On 2007.10.05. 17:30, Foo Bar wrote:
 ...
  
  'Remove Volume After' is of no use since I want to keep the volume,
 just
  control its contents.
 
 actually, if you would limit each volume to a single job, it would 
 nicely achieve the goal, i think

Unless you need to do a periodic full backup and many incrementals in
between (like several times daily), times the number of full backup cycles
you want to keep times the number of clients you need to backup. That could
mean many hundreds to thousands of volumes, so pretty much useless I'm
afraid.

 [..] i think, in tivoli there were options to keep x 
 amount of last versions for a file that still exists and y copies of a 
 file that has been deleted.

That would be extremely useful.


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] multi-destination message

2007-10-04 Thread Foo Bar

--- luyigui loholhlki [EMAIL PROTECTED] wrote:

 hi i'm just a beginner in bacula :)
 could u please tellme what to put in the clause
 ##
 Messages {
   Name = standard
 
 mailcommand = /usr/sbin/bsmtp -h localhost -f \\(Bacula\) %r\ -s
 \message \ %r
   mail = [EMAIL PROTECTED] = all, !skipped
   console = all, !skipped, !saved
   append = /var/bacula/log = all, !skipped
 }
 ###
 
 i want to send an e-mail to (e.g [EMAIL PROTECTED] and [EMAIL PROTECTED])

Edit foo.txt to have some text, then do from the shell:

/sbin/bsmtp -h your.smtp.server -f (Bacula) [EMAIL PROTECTED] -s
Bacula test message [EMAIL PROTECTED] [EMAIL PROTECTED] foo.txt

This should deliver it to both [EMAIL PROTECTED] and [EMAIL PROTECTED], if it
doesn't, your.smtp.server or host.com might be filtering them (for example
here I have to fake the -f entry or my host.com refuses the mail, while
another recipient has no problems with nonexistent info behind -f).

If they do deliver, then the comma separated list I gave you should work,
doublecheck the entry. If all else fails, you might also try using a single
(local) address and have a .forward with procmail actually sending it to
two or more addresses. Or you could use some other mailer instead of bsmtp,
although I doubt that's the problem.


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] multi-destination message

2007-10-04 Thread Foo Bar
I wrote an answer to this but it disappeared, so here goes again:

--- luyigui loholhlki [EMAIL PROTECTED] wrote:

 hi i'm just a beginner in bacula :)
 could u please tellme what to put in the clause
 ##
 Messages {
   Name = standard
 
 mailcommand = /usr/sbin/bsmtp -h localhost -f \\(Bacula\) %r\ -s
 \message \ %r
   mail = [EMAIL PROTECTED] = all, !skipped
   console = all, !skipped, !saved
   append = /var/bacula/log = all, !skipped
 }
 ###
 
 i want to send an e-mail to (e.g [EMAIL PROTECTED] and [EMAIL PROTECTED])

I answered this one, multiple comma separated addresses worked for me. If
that doesn't work for you (after checking the syntax again), you might want
to try running the bsmtp util manually to try if the mail is delivered at
all, and then perhaps another util like sendmail, nullmailer or whatever to
check why not.

I tried from a shell (and it worked):

/sbin/bsmtp -h your.smtp.server -f (Bacula) [EMAIL PROTECTED] -s
Bacula test message [EMAIL PROTECTED] [EMAIL PROTECTED] foo.txt

(where foo.txt contains the message body) If this doesn't work for you
either your.smtp.server or host.com might be rejecting mail based on
headers (what you put behind -f for example).


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring to different location than client machine

2007-10-04 Thread Foo Bar

--- John Drescher [EMAIL PROTECTED] wrote:

 On 10/4/07, Foo Bar [EMAIL PROTECTED] wrote:
  I have not been able to find this in the manual: specifying the where
  directive, or using the mod option during manual restore and changing
 the
  path will always restore to the client machine and then the path
 specified.
 
  I would like to restore to a different machine (e.g. a network mount
  relative to the director). How do you specify this?
 
 
 You specify the old client when you start the restore command from
 bconsole. This will then have you mark the files you want to restore.
 After this you issue the mod command and then change the client to the
 new client.

Aha, I somehow missed the option to change the restore client. However,
after trying that: it fails with either complaints about the path (trying
to restore a file backed up from a Windows client to a Linux client)
Error: Cannot create directory /mnt/bacula/restores/c:: ERR=No such file
or directory) or Error: Missing private key required to decrypt encrypted
backup data.

The former can probably be worked around by using a Windows client to
restore to, which I have not tried yet. I did run into a problem using
pathnames restoring from/to the same client though:

The way it's described in the manual doesn't work properly (only allows
restore of single files), need to use forward slashes and lower case drive
letters, so instead of
File = C:\\Documents and Settings\\Administrator\\My Documents\\Bacula,
File = c:/Documents and Settings/Administrator/My Documents/Bacula


To fix the encryption thing I tried copying the client's .pem, .key and
.cert files to /etc/bacula/ on the director (which also runs the storage
daemon) but to no avail, same error message. The subdirs and file are
created, but the file has size 0.

It also complains about not being able to set permissions for all the
subdirs and files it tries to create although all daemons have as group
bacula (restoring to a Samba mount, but /mnt/bacula also has group bacula).
All permissions are correct as far as I can see (writable by group etc.).

Also, lsmark doesn't show files unless you are in the directory the files
were marked in.

Lastly, is there an option not to restore the full path, just the file?


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] multidestination e-mail

2007-10-03 Thread Foo Bar
Hi,

 can you please tell what to put in bacula-dir.conf in order to send
 notification to different e-mails

in (all) the Messages { } section(s):
mail = [EMAIL PROTECTED], [EMAIL PROTECTED] = all, !skipped

this worked for me.



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] multidestination e-mail

2007-10-03 Thread Foo Bar

--- Foo Bar [EMAIL PROTECTED] wrote:

 mail = [EMAIL PROTECTED], [EMAIL PROTECTED] = all, !skipped

And if you view this from a webinterface that mangles this, the  at 
should be an at sign for both addresses. Hopefully the brackets aren't
mangled now :)


  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users