Bacula-users

Re: [Bacula-users] error about MySQL-dump file when using bpipe

2016-01-22 05:58:09
Subject: Re: [Bacula-users] error about MySQL-dump file when using bpipe
From: Heitor Faria <heitor AT bacula.com DOT br>
To: Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>
Date: Fri, 22 Jan 2016 08:55:38 -0200 (BRST)
Hello Silver,
Hello Silver [2],

bpipe reads a command data that is directed to stdout and stores in backup with the name you put in the 2nd variable (fifo path) => I hope is what you are trying to achieve with your scripts. While in restore Bacula uses the last bpipe configuration variable (command) to read from stdin and restore your data with the application of your choice. I never saw a bpipe usage documentation with scripts, but with commands directly. E.g.: Plugin = “bpipe:/mnt/fifo/heitorfaria.sql:mysqldump -u root -ppasswd –databases heitorfaria:mysql -u root -ppasswd″
The beauty of bpipe is you don't need local disk space to generate the dumps since fifos actually don't hold data (it just streams it to an end) and you may also automate application restore directly to it.
I recorded some videoclasses that you can find in the same URL post I provided.  

JobId 54542: Error: /srv/mysqldump.sql mtime changed during backup.
JobId 54542: Error: bpipe-fd: Error closing for file /srv/mysqldump.sql: 268435583
...
  Termination:            Backup OK -- with warnings
--
Silver

On 22.01.2016 10:56, Ana Emília M. Arruda wrote:
Hello Silver,

The same error? Have you checked permissions?

Best regards,
Ana

On Fri, Jan 22, 2016 at 9:19 AM, Silver Salonen <silver.salonen AT gmail DOT com> wrote:
After creating those folders, those errors still appeared. Any other ideas?

--
Silver

On 21.01.2016 13:43, Silver Salonen wrote:
Aha, I indeed didn't have /mysql directory. Thanks a bunch! :)

PS. Script permissions are correct as otherwise the dump wouldn't have been created.

--
Silver

On 21.01.2016 12:21, Heitor Faria wrote:

Hello Silver,

Does the /mysql directory exist? It must.
Make sure also bacula-fd daemon OS user has proper permissions to run the scripts

Regards,
===========================================================================
Heitor Medrado de Faria - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II
Do you need Bacula training? http://bacula.us/video-classes/
+55 61 8268-4220
Site: http://bacula.us FB: heitor.faria
===========================================================================

Enviado por TypeApp

Em 21 de jan de 2016, pelo 06:37, Silver Salonen <silver.salonen AT gmail DOT com> escrito:
Hi.

I'm backing up MySQL databases from several servers with Fileset line:
     Plugin = 
"bpipe:/mysql/mysqldump.sql:/etc/bacula/scripts/mysqldump.sh 
mydb:/etc/bacula/scripts/mysqldump.sh -R"

FD on some of those servers give the following error:
     Warning: Cannot stat file /mysql/mysqldump.sql: ERR=No such file or 
directory

I've confirmed that actually the MySQL database is still backed up and 
can be restored too. So why the error? Anybody knows or can guess?

--
Silver

Regards,
--
=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: http://www.bacula.com.br/agenda/
Ministro treinamento e implementação in-company Bacula: http://www.bacula.com.br/in-company/
Ou assista minhas vídeo aulas on-line: http://www.bacula.com.br/treinamento-bacula-ed/
Site: www.bacula.com.br | Facebook: heitor.faria
========================================================================
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>