Re: [Bacula-users] Backup to file, filesize limit not working

2018-03-16 Thread Bill Arlofski
On 03/16/2018 12:09 AM, Sebastian Suchanek wrote:
> Am 15.03.2018 um 21:47 schrieb Dimitri Maziuk:
>> On 03/15/2018 03:11 PM, Sebastian Suchanek wrote:
>>
>>> I just did - unfortunately, with no effect. After restarting the
>>> director and letting the backup job run manually, the backup file just
>>> got even bigger.
>>
>> I wonder if you have to run "update volume maxvolbytes=NNN" in bconsole
>> in order for it to apply to existing volume.
>> [...]
> 
> That did the trick. Thank you!

Yep...

Also, when you make these types of configuration changes to a pool which
affect volumes, after running the "update pool" command in bconsole, you can
apply these settings to all volumes in all pools that were modified with:

* update volume fromallpools


Hope this helps!

Best regards,

Bill


-- 
Bill Arlofski
http://www.revpol.com/bacula
-- Not responsible for anything below this line --

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup to file, filesize limit not working

2018-03-16 Thread Sebastian Suchanek
Am 15.03.2018 um 21:47 schrieb Dimitri Maziuk:
> On 03/15/2018 03:11 PM, Sebastian Suchanek wrote:
> 
>> I just did - unfortunately, with no effect. After restarting the
>> director and letting the backup job run manually, the backup file just
>> got even bigger.
> 
> I wonder if you have to run "update volume maxvolbytes=NNN" in bconsole
> in order for it to apply to existing volume.
> [...]

That did the trick. Thank you!


Regards

Sebastian

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup to file, filesize limit not working

2018-03-15 Thread Dimitri Maziuk
On 03/15/2018 03:11 PM, Sebastian Suchanek wrote:

> I just did - unfortunately, with no effect. After restarting the
> director and letting the backup job run manually, the backup file just
> got even bigger.

I wonder if you have to run "update volume maxvolbytes=NNN" in bconsole
in order for it to apply to existing volume. I'm pretty sure "Maximum
Volume Bytes = 4980736" worked on 5.x here (I'm on v.7 now).

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



signature.asc
Description: OpenPGP digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup to file, filesize limit not working

2018-03-15 Thread Sebastian Suchanek
Am 15.03.2018 um 20:38 schrieb Pedro Oliveira:

Hi Pedro!

> Hi Sebastian, try to change the 
> 
> Maximum Volume Bytes = 500MB 
> 
> To 
> 
> Maximum Volume Bytes = 5 

I just did - unfortunately, with no effect. After restarting the
director and letting the backup job run manually, the backup file just
got even bigger.

> I also recommend to upgrade to version 9.x

I'm rather reluctant to use software "outside" of my distribution's
repository. I /could/ upgrade from Debian Jessie to Debian Stretch,
which would come with Bacula v7.4.4, but since this update will cause a
lot of work because of other interdependencies (independent of Bacula),
I'm postponing this for the moment.


Regards

Sebastian


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Backup to file, filesize limit not working

2018-03-15 Thread Pedro Oliveira
Hi Sebastian, try to change the

Maximum Volume Bytes = 500MB

To

Maximum Volume Bytes = 5

I also recommend to upgrade to version 9.x

Best

Pedro


2018-03-15 19:30 GMT+00:00 Sebastian Suchanek :

> Hi all!
>
> Currently, I'm trying to set up and getting familiar with Bacula.
> (v5.2.6 - that's the version that comes with my Linux distribution
> Debian Jessie.)
>
> For making backups of the Bacula catalog, I've made the following
> configurations:
>
> - bacula-sd.conf --
> [...]
> Device {
>   Name = FileStorage
>   Media Type = File
>   Archive Device = /srv/bacula/file
>   LabelMedia = yes
>   Random Access = yes
>   AutomaticMount = yes
>   RemovableMedia = no
>   AlwaysOpen = no
> }
> [...]
> ---
>
> - bacula-dir.conf -
> []
> Job {
>   Name = "BackupCatalog"
>   JobDefs = "DefaultJob"
>   Level = Full
>   FileSet="Catalog"
>   Schedule = "WeeklyCycleAfterBackup"
>   RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
>   RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
>   Write Bootstrap = "/var/lib/bacula/%n.bsr"
>   Priority = 11
> }
>
> Schedule {
>   Name = "WeeklyCycleAfterBackup"
>   Run = Full sun-sat at 20:10
> }
>
> FileSet {
>   Name = "Catalog"
>   Include {
> Options {
>   signature = MD5
> }
> File = "/var/lib/bacula/bacula.sql"
>   }
> }
>
> Storage {
>   Name = File
>   Address = localhost
>   SDPort = 9103
>   Password = "xIOrJZDj98rAAfP3S_dN8ipaa6RbxCkV9"
>   Device = FileStorage
>   Media Type = File
> }
>
> Pool {
>   Name = File
>   Pool Type = Backup
>   Recycle = yes
>   AutoPrune = yes
>   Volume Retention = 365 days
>   Maximum Volume Bytes = 500MB
>   Maximum Volumes = 10
>   LabelFormat = "file"
> }
> ---
>
> With this configuration, I would expect that Bacula writes the jobs to a
> file "file" in /srv/bacula/file and, as soon as this file's size
> reaches 500MB, creates a new file and continues with that. (Up to ten
> files.) But instead, Bacula keeps writing to a single file, which
> currently has grown to around 690MB, IOW well above 500MB.
> What's going wrong here? How can I make Bacula create a new file once
> the current file's size has reached 500MB?
>
>
> Regards
>
> Sebastian
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>



-- 
--
Cumprimentos,

Pedro Oliveira

Rua Antonio Botto | Nº 23 | 1º A | 2950-565 Quinta do Anjo

tel +351 218 440 100 | mobile +351 916 111 464

website   |
  



*Aviso de Confidencialidade:* Esta mensagem é exclusivamente destinada ao
seu destinatário, podendo conter informação CONFIDENCIAL, cuja divulgação
está expressamente vedada nos termos da lei. Caso tenha recepcionado
indevidamente esta mensagem, solicitamos-lhe que nos comunique esse mesmo
facto por esta via ou para o telefone +351 916111464  devendo apagar o seu
conteúdo de imediato.

This message is intended exclusively for its addressee. It may contain
CONFIDENTIAL information protected by law. If this message has been
received by error, please notify us via e-mail or by telephone
+351916111464 and delete it immediately.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Backup to file, filesize limit not working

2018-03-15 Thread Sebastian Suchanek
Hi all!

Currently, I'm trying to set up and getting familiar with Bacula.
(v5.2.6 - that's the version that comes with my Linux distribution
Debian Jessie.)

For making backups of the Bacula catalog, I've made the following
configurations:

- bacula-sd.conf --
[...]
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /srv/bacula/file
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}
[...]
---

- bacula-dir.conf -
[]
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  Priority = 11
}

Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 20:10
}

FileSet {
  Name = "Catalog"
  Include {
Options {
  signature = MD5
}
File = "/var/lib/bacula/bacula.sql"
  }
}

Storage {
  Name = File
  Address = localhost
  SDPort = 9103
  Password = "xIOrJZDj98rAAfP3S_dN8ipaa6RbxCkV9"
  Device = FileStorage
  Media Type = File
}

Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 365 days
  Maximum Volume Bytes = 500MB
  Maximum Volumes = 10
  LabelFormat = "file"
}
---

With this configuration, I would expect that Bacula writes the jobs to a
file "file" in /srv/bacula/file and, as soon as this file's size
reaches 500MB, creates a new file and continues with that. (Up to ten
files.) But instead, Bacula keeps writing to a single file, which
currently has grown to around 690MB, IOW well above 500MB.
What's going wrong here? How can I make Bacula create a new file once
the current file's size has reached 500MB?


Regards

Sebastian

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users