Iniciar e restaurar um backup

1,925 views
Skip to first unread message

Igor Muzetti

unread,
Nov 29, 2012, 12:25:33 PM11/29/12
to bacula-ba...@googlegroups.com
Pessoal,

Estava com um problema de compatibilidade do mysql com meu bacula.
Agora o resolvi, e gostaria da ajuda de vocês para iniciar um backup e depois gostaria de saber como fazer para restaurá-lo.

Configurei um backup com 2 Jobs:

1 incremental e 1 full.
Cada Job (são 2) referencia um Pool (são 2).

incremental (job) = semanal (pool)
full (job) = mensal (pool)

Meu backup salva um diretorio de um HD para outro HD na mesma maquina.

Para iniciar preciso dar um comando label no bconsole, correto?
Um unico label para os 2 pools/job que tenho?

E depois para restaurar preciso dar o comando run e mark* ?

Att,


--
terraLab logo Igor Muzetti Pereira 
TerraLAB - Earth System Modelling and Simulation Laboratory 
Computer Science Department, UFOP - Federal University of Ouro Preto

Campus Universitário Morro do Cruzeiro, Ouro Preto - MG, Brazil, 35400-000

+55 31 3559 1253

www.terralab.ufop.br   www.decom.ufop.br




Luis H. Forchesatto

unread,
Nov 29, 2012, 1:18:40 PM11/29/12
to bacula-ba...@googlegroups.com
Saudações Igor. 

Para fazer o restore, abra o bconsole e digite "restore". Depois só ir selecionando as opções. Dependendo do que você escolher será solicitado informar quais arquivos devem ser restaurados, é nesse ponto que você utiliza o "mark *".

Para fazer o primeiro backup salvo engano meu não é necessário dar um label para o primeiro volume, apenas deixe ele rodar (posso estar enganado nessa parte).

Espero ter ajudado :)

Abraço.

--
Você está recebendo esta mensagem porque se inscreveu no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para postar neste grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Para cancelar a inscrição nesse grupo, envie um e-mail para bacula-backup-p...@googlegroups.com.
Visite este grupo em http://groups.google.com/group/bacula-backup-pt-br?hl=pt-BR.
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
 
 



--
Att.
Luis H. Forchesatto

Edmar Araújo

unread,
Nov 29, 2012, 1:37:08 PM11/29/12
to bacula-ba...@googlegroups.com
Boa tarde à Todos!

Igor,

Exatamente o que o Luiz comentou, se necessitar de exemplos, pode checar em 



Outra opção que pode explorar futuramente é o restore, por "dentro" do bconsole

*help restore
  Command       Description
  =======       ===========
  restore       Restore files

Arguments:
where=</path> client=<client> storage=<storage> bootstrap=<file>
comment=<text> jobid=<jobid> done select all

When at a prompt, entering a period cancels the command.

Um pequeno exemplo:

restore client=ServidorOrigem restoreclient=ServidorDestino where=/restore1/before="2012-11-28 12:00:00" select all done yes

Abraço!
Atenciosamente,

Edmar Araújo | Daqui a um minuto é o Futuro.

http://3dmar.com


Igor Muzetti

unread,
Nov 30, 2012, 7:09:44 AM11/30/12
to bacula-ba...@googlegroups.com
Bom dia pessoal,

Obrigado pelas ajudas.
Não consegui ter meu backup no outro HD (/media/backup/bacula-restores) ainda.
Fiz como esse tutorial e pelas explicações de vocês, mas a pasta home/
não está lah, somente uma outra home_old/.
Vejam a saida de todo o meu processo no bconsole:

root@andes:/media/backup/bacula-restores# bconsole
Connecting to Director andes:9101
1000 OK: andes-dir Version: 5.2.12 (12 September 2012)
Enter a period to cancel a command.
*restore
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
1: List last 20 Jobs run
2: List Jobs where a given File is saved
3: Enter list of comma separated JobIds to select
4: Enter SQL list command
5: Select the most recent backup for a client
6: Select backup for a client before a specified time
7: Enter a list of files to restore
8: Enter a list of files to restore before a specified time
9: Find the JobIds of the most recent backup for a client
10: Find the JobIds for a backup for a client before a specified time
11: Enter a list of directories to restore for found JobIds
12: Select full restore to a specified Job date
13: Cancel
Select item: (1-13): 1
+-------+----------+---------------------+----------+----------+----------------+
| JobId | Client | StartTime | JobLevel | JobFiles |
JobBytes |
+-------+----------+---------------------+----------+----------+----------------+
| 1 | andes-fd | 2012-11-29 14:51:23 | F | 22226 |
21677451140 |
+-------+----------+---------------------+----------+----------+----------------+
To select the JobIds, you have the following choices:
1: List last 20 Jobs run
2: List Jobs where a given File is saved
3: Enter list of comma separated JobIds to select
4: Enter SQL list command
5: Select the most recent backup for a client
6: Select backup for a client before a specified time
7: Enter a list of files to restore
8: Enter a list of files to restore before a specified time
9: Find the JobIds of the most recent backup for a client
10: Find the JobIds for a backup for a client before a specified time
11: Enter a list of directories to restore for found JobIds
12: Select full restore to a specified Job date
13: Cancel
Select item: (1-13): 12
Enter JobId to get the state to restore: 1
Selecting jobs to build the Full state at 2012-11-29 14:51:23
You have selected the following JobId: 1

Building directory tree for JobId(s) 1 ...
++++++++++++++++++++++++++++++++++++++++++++++
20,589 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
home/
$ mark *
22,226 files marked.
$ ls
*home/
$ done
Bootstrap records written to /var/bacula/working/andes-dir.restore.6.bsr

The job will require the following
Volume(s) Storage(s) SD Device(s)
===========================================================================

backupFinalAno2012 File File

Volumes marked with "*" are online.


22,226 files selected to be restored.

Automatically selected Client: andes-fd
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/bacula/working/andes-dir.restore.6.bsr
Where: /media/backup/bacula-restores
Replace: always
FileSet: andes
Backup Client: andes-fd
Restore Client: andes-fd
Storage: File
When: 2012-11-30 09:42:24
Catalog: MyCatalog
Priority: 10
Plugin Options: *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=12
*exit
root@andes:/media/backup/bacula-restores# ls
home_old

Parece que tudo ocoreu normalmente, mas não tenho a pasta home/ em
/media/backup/bacula-restores.
Alguém tem alguma dica do que pode estar acontecendo?

obrigado!


Em 29/11/12, Edmar Araújo<3d...@3dmar.com> escreveu:
>>> Para iniciar preciso dar um comando *label *no bconsole, correto?
>>> Um unico label para os 2 pools/job que tenho?
>>>
>>> E depois para restaurar preciso dar o comando *run* e *mark** ?
>>>
>>> Att,
>>>
>>>
>>> --
>>> [image: terraLab logo] *Igor Muzetti Pereira *
>>> TerraLAB - Earth System Modelling and Simulation Laboratory
>>> Computer Science Department, UFOP - Federal University of Ouro Preto
>>>
>>> *Campus Universitário Morro do Cruzeiro, Ouro Preto - MG, Brazil,
>>> 35400-000*
>>> *
>>> +55 31 3559 1253*
>>> *www.terralab.ufop.br* <http://www.terralab.ufop.br/> *
>>> www.decom.ufop.br* <http://www.decom.ufop.br/>
>>>
>>>
>>>
>>> --
>>> Você está recebendo esta mensagem porque se inscreveu no grupo "Bacula
>>> Backup-Pt-Br" dos Grupos do Google.
>>> Para postar neste grupo, envie um e-mail para
>>> bacula-ba...@googlegroups.com.
>>> Para cancelar a inscrição nesse grupo, envie um e-mail para
>>> bacula-backup-p...@googlegroups.com.
>>> Visite este grupo em
>>> http://groups.google.com/group/bacula-backup-pt-br?hl=pt-BR.
>>> Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Att.*
>> ***
>> Luis H. Forchesatto
>> Mail: luis_for...@hotmail.com
>>
>> --
>> Você está recebendo esta mensagem porque se inscreveu no grupo "Bacula
>> Backup-Pt-Br" dos Grupos do Google.
>> Para postar neste grupo, envie um e-mail para
>> bacula-ba...@googlegroups.com.
>> Para cancelar a inscrição nesse grupo, envie um e-mail para
>> bacula-backup-p...@googlegroups.com.
>> Visite este grupo em
>> http://groups.google.com/group/bacula-backup-pt-br?hl=pt-BR.
>> Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Atenciosamente,
>
> *Edmar Araújo | Daqui a um minuto é o Futuro.
>
> *http://3dmar.com
>
> --
> Você está recebendo esta mensagem porque se inscreveu no grupo "Bacula
> Backup-Pt-Br" dos Grupos do Google.
> Para postar neste grupo, envie um e-mail para
> bacula-ba...@googlegroups.com.
> Para cancelar a inscrição nesse grupo, envie um e-mail para
> bacula-backup-p...@googlegroups.com.
> Visite este grupo em
> http://groups.google.com/group/bacula-backup-pt-br?hl=pt-BR.
> Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
>
>
>


--
[image: terraLab logo]*Igor Muzetti Pereira *
TerraLAB - Earth System Modelling and Simulation Laboratory
Computer Science Department, UFOP - Federal University of Ouro Preto

*Campus Universitário Morro do Cruzeiro, Ouro Preto - MG, Brazil, 35400-000*
*
+55 31 3559 1253*
*www.terralab.ufop.br* <http://www.terralab.ufop.br/>
*www.decom.ufop.br*<http://www.decom.ufop.br/>

Igor Muzetti

unread,
Nov 30, 2012, 7:10:37 AM11/30/12
to bacula-ba...@googlegroups.com
Esqueci!
O tutorial que segui é este indicado:
http://www.vivaolinux.com.br/artigo/Debian-Squeeze-Implantando-um-Servidor-de-Backup-com-Bacula?pagina=4

Em 30/11/12, Igor Muzetti<igorm...@gmail.com> escreveu:

Ana Emília Machado de Arruda

unread,
Nov 30, 2012, 8:10:03 AM11/30/12
to bacula-ba...@googlegroups.com
Igor, cola aqui o resultado do restore... Se possível, o que tiver no .../working/log... O seu andes-fd está na mesma máquina do andes-dir? Você pode ver as permissões para o diretório /media/backup/bacula-restores...

[]s
Ana

2012/11/30 Igor Muzetti <igorm...@gmail.com>

Igor Muzetti

unread,
Nov 30, 2012, 8:40:16 AM11/30/12
to bacula-ba...@googlegroups.com
Conectei no bconsole, deixei um tempo sem fazer nada e foi aparecendo isso:

Connecting to Director andes:9101
1000 OK: andes-dir Version: 5.2.12 (12 September 2012)
Enter a period to cancel a command.
*
30-Nov 09:49 andes-dir JobId 2: Fatal error: Network error with FD
during Backup: ERR=No data available
30-Nov 09:49 andes-sd JobId 2: Job
andesSemanalIncremental.2012-11-29_14.51.28_04 canceled while waiting
for mount on Storage Device ""File" (/media/backup/)".
30-Nov 09:49 andes-dir JobId 2: Fatal error: No Job status returned from FD.
30-Nov 09:49 andes-dir JobId 2: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 2
Job: andesSemanalIncremental.2012-11-29_14.51.28_04
Backup Level: Full (upgraded from Incremental)
Client: "andes-fd" 5.2.12 (12Sep12)
x86_64-unknown-linux-gnu,debian,6.0.6
FileSet: "andes" 2012-11-29 14:51:21
Pool: "Semanal" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 29-Nov-2012 14:51:27
Start time: 29-Nov-2012 15:09:17
End time: 30-Nov-2012 09:49:28
Elapsed time: 18 hours 40 mins 11 secs
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 2
Volume Session Time: 1354207869
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: Error
SD termination status: Canceled
Termination: *** Backup Error ***

30-Nov 09:49 andes-dir JobId 3: Fatal error: Cannot restore without a
bootstrap file.
You probably ran a restore job directly. All restore jobs must
be run using the restore command.
30-Nov 09:49 andes-dir JobId 3: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 3
Job: RestoreFiles.2012-11-29_14.51.41_05
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:29
End time: 30-Nov-2012 09:49:29
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status:
SD termination status:
Termination: *** Restore Error ***

30-Nov 09:49 andes-dir JobId 3: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 3
Job: RestoreFiles.2012-11-29_14.51.41_05
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:29
End time: 30-Nov-2012 09:49:29
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 2
FD termination status:
SD termination status:
Termination: *** Restore Error ***

30-Nov 09:49 andes-dir JobId 4: Fatal error: Cannot restore without a
bootstrap file.
You probably ran a restore job directly. All restore jobs must
be run using the restore command.
30-Nov 09:49 andes-dir JobId 4: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 4
Job: RestoreFiles.2012-11-29_14.51.56_06
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:30
End time: 30-Nov-2012 09:49:30
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status:
SD termination status:
Termination: *** Restore Error ***

30-Nov 09:49 andes-dir JobId 4: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 4
Job: RestoreFiles.2012-11-29_14.51.56_06
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:30
End time: 30-Nov-2012 09:49:30
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 2
FD termination status:
SD termination status:
Termination: *** Restore Error ***

30-Nov 09:49 andes-dir JobId 5: Start Backup JobId 5,
Job=andesFull.2012-11-29_15.00.00_07
*

O andes-fd está na mesma máquina do andes-dir e andes-sd.

As permissoes do diretório /media/backup/bacula-restores eu arrumei(-R
777) entes de fazer o restore, mas nao antes do backup ser executado
(como definido do bacula-dir). Pode ter tido interferência nisso?

Arquivo bacula.log:
29-Nov 14:35 andes-dir: ERROR in authenticate.c:415 Unable to
authenticate console "*UserAgent*" at client:192.168.0.234:9101

Dia 29/11 ontem foi o dia que coloquei o backup para executar.

Arquivo log:
29-Nov 14:51 andes-dir JobId 1: Start Backup JobId 1,
Job=andesFull.2012-11-29_14.51.21_03
29-Nov 14:51 andes-dir JobId 1: Using Device "File"
29-Nov 14:51 andes-sd JobId 1: Job andesFull.2012-11-29_14.51.21_03 is
waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "File" (/media/backup/)
Pool: Mensal
Media type: File
29-Nov 14:53 andes-sd JobId 1: Wrote label to prelabeled Volume
"backupFinalAno2012" on device "File" (/media/backup/)
29-Nov 15:09 andes-sd JobId 1: Elapsed time=00:15:28, Transfer
rate=23.36 M Bytes/second
29-Nov 15:09 andes-dir JobId 1: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 1
Job: andesFull.2012-11-29_14.51.21_03
Backup Level: Full
Client: "andes-fd" 5.2.12 (12Sep12)
x86_64-unknown-linux-gnu,debian,6.0.6
FileSet: "andes" 2012-11-29 14:51:21
Pool: "Mensal" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 29-Nov-2012 14:51:19
Start time: 29-Nov-2012 14:51:23
End time: 29-Nov-2012 15:09:16
Elapsed time: 17 mins 53 secs
Priority: 10
FD Files Written: 22,226
SD Files Written: 22,226
FD Bytes Written: 21,677,451,140 (21.67 GB)
SD Bytes Written: 21,680,980,921 (21.68 GB)
Rate: 20202.7 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s): backupFinalAno2012
Volume Session Id: 1
Volume Session Time: 1354207869
Last Volume Bytes: 21,697,787,745 (21.69 GB)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK

29-Nov 15:09 andes-dir JobId 1: Begin pruning Jobs older than 6 months .
29-Nov 15:09 andes-dir JobId 1: No Jobs found to prune.
29-Nov 15:09 andes-dir JobId 1: Begin pruning Files.
29-Nov 15:09 andes-dir JobId 1: No Files found to prune.
29-Nov 15:09 andes-dir JobId 1: End auto prune.

29-Nov 14:51 andes-dir JobId 2: No prior Full backup Job record found.
29-Nov 14:51 andes-dir JobId 2: No prior or suitable Full backup found
in catalog. Doing FULL backup.
29-Nov 15:09 andes-dir JobId 2: Start Backup JobId 2,
Job=andesSemanalIncremental.2012-11-29_14.51.28_04
29-Nov 15:09 andes-dir JobId 2: Using Device "File"
29-Nov 15:09 andes-sd JobId 2: Job
andesSemanalIncremental.2012-11-29_14.51.28_04 is waiting. Cannot find
any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "File" (/media/backup/)
Pool: Semanal
Media type: File
29-Nov 16:09 andes-sd JobId 2: Job
andesSemanalIncremental.2012-11-29_14.51.28_04 is waiting. Cannot find
any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "File" (/media/backup/)
Pool: Semanal
Media type: File
29-Nov 18:09 andes-sd JobId 2: Job
andesSemanalIncremental.2012-11-29_14.51.28_04 is waiting. Cannot find
any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "File" (/media/backup/)
Pool: Semanal
Media type: File
29-Nov 22:09 andes-sd JobId 2: Job
andesSemanalIncremental.2012-11-29_14.51.28_04 is waiting. Cannot find
any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "File" (/media/backup/)
Pool: Semanal
Media type: File
30-Nov 06:09 andes-sd JobId 2: Job
andesSemanalIncremental.2012-11-29_14.51.28_04 is waiting. Cannot find
any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "File" (/media/backup/)
Pool: Semanal
Media type: File
30-Nov 09:49 andes-dir JobId 2: Fatal error: Network error with FD
during Backup: ERR=No data available
30-Nov 09:49 andes-sd JobId 2: Job
andesSemanalIncremental.2012-11-29_14.51.28_04 canceled while waiting
for mount on Storage Device ""File" (/media/backup/)".
30-Nov 09:49 andes-dir JobId 2: Fatal error: No Job status returned from FD.
30-Nov 09:49 andes-dir JobId 2: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 2
Job: andesSemanalIncremental.2012-11-29_14.51.28_04
Backup Level: Full (upgraded from Incremental)
Client: "andes-fd" 5.2.12 (12Sep12)
x86_64-unknown-linux-gnu,debian,6.0.6
FileSet: "andes" 2012-11-29 14:51:21
Pool: "Semanal" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 29-Nov-2012 14:51:27
Start time: 29-Nov-2012 15:09:17
End time: 30-Nov-2012 09:49:28
Elapsed time: 18 hours 40 mins 11 secs
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 2
Volume Session Time: 1354207869
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: Error
SD termination status: Canceled
Termination: *** Backup Error ***

30-Nov 09:49 andes-dir JobId 3: Fatal error: Cannot restore without a
bootstrap file.
You probably ran a restore job directly. All restore jobs must
be run using the restore command.
30-Nov 09:49 andes-dir JobId 3: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 3
Job: RestoreFiles.2012-11-29_14.51.41_05
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:29
End time: 30-Nov-2012 09:49:29
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status:
SD termination status:
Termination: *** Restore Error ***

30-Nov 09:49 andes-dir JobId 3: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 3
Job: RestoreFiles.2012-11-29_14.51.41_05
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:29
End time: 30-Nov-2012 09:49:29
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 2
FD termination status:
SD termination status:
Termination: *** Restore Error ***

30-Nov 09:49 andes-dir JobId 4: Fatal error: Cannot restore without a
bootstrap file.
You probably ran a restore job directly. All restore jobs must
be run using the restore command.
30-Nov 09:49 andes-dir JobId 4: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 4
Job: RestoreFiles.2012-11-29_14.51.56_06
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:30
End time: 30-Nov-2012 09:49:30
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status:
SD termination status:
Termination: *** Restore Error ***

30-Nov 09:49 andes-dir JobId 4: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 4
Job: RestoreFiles.2012-11-29_14.51.56_06
Restore Client: andes-fd
Start time: 30-Nov-2012 09:49:30
End time: 30-Nov-2012 09:49:30
Files Expected: 0
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 2
FD termination status:
SD termination status:
Termination: *** Restore Error ***


Isso ajuda a descobrir algo?

Att,




Em 30/11/12, Ana Emília Machado de Arruda<emilia...@gmail.com> escreveu:

Ana Emília Machado de Arruda

unread,
Nov 30, 2012, 9:47:51 AM11/30/12
to bacula-ba...@googlegroups.com
Essas msgs foram todas anteriores ao restore 6 que você postou antes... Muitas falam que vc usou o "run" para rodar o job de restore, mas no restore 6 vc usou o "restore" corretamente... Falam que o único bkp que funcionou foi o Jobid=1, um bkp full, os incrementais não funcionaram.
Se vc puder colar aqui uma tentativa de restore + seu resultado, seria melhor pra avaliar...
A única coisa que percebi no restore 6 que vc colou num post anterior, foi que o volume não estava montado. Vc podia tentar fazer um mount do volume usado no jobid=1 antes de chamar o restore para esse job...
Se vc fizer essa tentativa, cola aqui o passo-a-passo e o resultado que fica melhor de entender teu problema...

[]s
Ana

Igor Muzetti

unread,
Nov 30, 2012, 10:20:24 AM11/30/12
to bacula-ba...@googlegroups.com
Oi Ana, minha tentativa de restore foi:

root@andes:/home/terralab# bconsole
Bootstrap records written to /var/bacula/working/andes-dir.restore.1.bsr

The job will require the following
Volume(s) Storage(s) SD Device(s)
===========================================================================

backupFinalAno2012 File File

Volumes marked with "*" are online.


22,226 files selected to be restored.

Automatically selected Client: andes-fd
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/bacula/working/andes-dir.restore.1.bsr
Where: /media/backup/bacula-restores
Replace: always
FileSet: andes
Backup Client: andes-fd
Restore Client: andes-fd
Storage: File
When: 2012-11-30 12:47:38
Catalog: MyCatalog
Priority: 10
Plugin Options: *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=13


*****************Arquivo log:

30-Nov 12:47 andes-dir JobId 13: Start Restore Job
RestoreFiles.2012-11-30_12.47.44_03
30-Nov 12:47 andes-dir JobId 13: Using Device "File"
30-Nov 12:47 andes-sd JobId 13: Ready to read from volume
"backupFinalAno2012" on device "File" (/media/backup/).
30-Nov 12:47 andes-sd JobId 13: Forward spacing Volume
"backupFinalAno2012" to file:block 0:204.
30-Nov 12:54 andes-dir JobId 13: Fatal error: Socket error on Store
end command: ERR=No data available
30-Nov 12:54 andes-sd JobId 13: Fatal error: read.c:122 Error sending
to File daemon. ERR=Success
30-Nov 12:54 andes-sd JobId 13: Error: bsock.c:382 Socket is
terminated=1 on call to client:192.168.0.234:9103
30-Nov 12:54 andes-dir JobId 13: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 13
Job: RestoreFiles.2012-11-30_12.47.44_03
Restore Client: andes-fd
Start time: 30-Nov-2012 12:47:46
End time: 30-Nov-2012 12:54:46
Files Expected: 22,226
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status:
SD termination status: Canceled
Termination: *** Restore Error ***

30-Nov 12:54 andes-dir JobId 13: Error: Bacula andes-dir 5.2.12 (12Sep12):
Build OS: x86_64-unknown-linux-gnu debian 6.0.6
JobId: 13
Job: RestoreFiles.2012-11-30_12.47.44_03
Restore Client: andes-fd
Start time: 30-Nov-2012 12:47:46
End time: 30-Nov-2012 12:54:46
Files Expected: 22,226
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 2
FD termination status:
SD termination status: Canceled
Termination: *** Restore Error ***


Queria saber como que faço para verificar quando todos os backups
funcionaram. no caso eh 1 full e 1 incremental.

eh melhor colocar pra acontecer 1 o full neh ?
o full roda todo mes e o incremental toda semana.

att,


2012/11/30, Ana Emília Machado de Arruda <emilia...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages