Backup Full e Incremental

91 views
Skip to first unread message

thylds

unread,
Sep 4, 2009, 9:40:05 AM9/4/09
to Bacula Backup-Pt-Br
Bom dia!!!

Possuo um driver de fita DAT (DAT-160) e apenas uma midia, gostaria de
saber qual a melhor maneira de fazer um backup full e seis
incrementais utilizando a mesma fita. Segue arquivos abaixo

Schedule {
Name = "Incremental"
Run = Level=Incremental Pool=Incremental Tuesday at 02:30am
Run = Level=Incremental Pool=Incremental Wednesday at 02:30am
Run = Level=Incremental Pool=Incremental Monday at 02:30am
Run = Level=Incremental Pool=Incremental Friday at 02:30am
Run = Level=Incremental Pool=Incremental Saturday at 02:30am
Run = Level=Incremental Pool=Incremental Sunday at 02:30am
}

Schedule {
Name = "Completo"
Run = Level=Full Pool=Completo Thursday at 02:30am
}

Pool {
Name = Incremental
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Maximum Volume Jobs = 14
Maximum Volumes = 7
Cleaning Prefix = "CLN"
}

Pool {
Name = Completo
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 13 days
Maximum Volume Jobs = 7
Maximum Volumes = 7
Cleaning Prefix = "CLN"
}

Job {
Name = Windows
Type = Backup
Client = Windows
FileSet = Windows
Storage = DAT
Pool = Incremental
Schedule = Incremental
Full Backup Pool = Completo
Incremental Backup Pool = Incremental
Messages = Mensagens
Write Bootstrap = /var/lib/bacula/Windows.bsr
Priority = 20
}

Job {
Name = RestoreWindows
Type = Restore
Client = Windows
FileSet = Windows
Storage = DAT
Messages = Mensagens
Pool = Completo
Where = /restore_bacula
}

Job {
Name = Linux
Type = Backup
Client = Linux
FileSet = Linux
Storage = DAT
Pool = Incremental
Schedule = Incremental
Full Backup Pool = Completo
Incremental Backup Pool = Incremental
Messages = Mensagens
Write Bootstrap = /var/lib/bacula/Linux.bsr
Priority = 30
}

Job {
Name = RestoreLinux
Type = Restore
Client = Linux
FileSet = Linux
Storage = DAT
Messages = Mensagens
Pool = Completo
Where = /restore_bacula
}

Heitor Faria

unread,
Sep 4, 2009, 9:26:45 AM9/4/09
to bacula-ba...@googlegroups.com
Não vejo vantagem nisso - fazer backups de tipos diferentes numa mesma fita.
Mas para que isso funcione, simplesmente submeta todos backups para o
mesmo storage e para a mesma pool.

Abraços!

thylds

unread,
Sep 8, 2009, 9:10:13 AM9/8/09
to Bacula Backup-Pt-Br
Estou com o seguinte erro

Device status:
Device "DAT" (/dev/st0) is not open.
Device is BLOCKED waiting for mount of volume "bkp-geral0002",
Pool: Geral
Media type: DAT160

*list media
Pool: Diario
No results to list.
Pool: Incremental
No results to list.
Pool: Completo
+---------+------------+-----------+---------+----------------
+----------+--------------+---------+------+-----------+-----------
+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes |
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten |
+---------+------------+-----------+---------+----------------
+----------+--------------+---------+------+-----------+-----------
+---------------------+
| 1 | DAT | Purged | 1 | 48,504,185,856 |
49 | 1,123,200 | 1 | 0 | 0 | DAT160 |
2009-09-03 22:00:34 |
+---------+------------+-----------+---------+----------------
+----------+--------------+---------+------+-----------+-----------
+---------------------+
Pool: Geral
+---------+---------------+-----------+---------+----------+----------
+--------------+---------+------+-----------+-----------
+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles
| VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten |
+---------+---------------+-----------+---------+----------+----------
+--------------+---------+------+-----------+-----------
+---------------------+
| 2 | bkp-geral0002 | Recycle | 1 | 1 | 0
| 518,400 | 1 | 0 | 0 | DAT160 | 0000-00-00
00:00:00 |
+---------+---------------+-----------+---------+----------+----------
+--------------+---------+------+-----------+-----------
+---------------------+
*

OBS: Eu ja retirei o Pool Completo dos arquivos de configuracao

Alguem pode ajudar???

Heitor Faria

unread,
Sep 8, 2009, 6:24:55 AM9/8/09
to bacula-ba...@googlegroups.com
Vc já montou a fita que ele pede?

thylds

unread,
Sep 8, 2009, 10:20:38 AM9/8/09
to Bacula Backup-Pt-Br
Sim fica a mesma mensagem

*mount
Automatically selected Storage: DAT
Connecting to Storage daemon DAT at 10.4.0.1:9103 ...
3995 Device "DAT" (/dev/st0) is not an autochanger.
Enter autochanger drive[0]: 0
Enter autochanger slot: 0
3001 OK mount requested. Device="DAT" (/dev/st0)

*status all

...

Device status:
Device "DAT" (/dev/st0) is not open.
Device is BLOCKED waiting for mount of volume "bkp-geral0002",
Pool: Geral
Media type: DAT160
====

Used Volume status:
bkp-geral0002 on device "DAT" (/dev/st0)
Reader=0 writers=0 devres=2 volinuse=0
====

====

...

Heitor Faria

unread,
Sep 8, 2009, 7:54:27 AM9/8/09
to bacula-ba...@googlegroups.com
Sua configuração do bacula-sd.conf está errada.
Vc tem de dizer que este drive não é um robô - "autochanger".

thylds

unread,
Sep 8, 2009, 11:39:06 AM9/8/09
to Bacula Backup-Pt-Br
Nao esta desabilitado????

Device {
Name = DAT
Media Type = DAT160
Archive Device = /dev/st0
Autochanger = no
AutomaticMount = yes;
AlwaysOpen = yes;
RandomAccess = no;
}


????

Heitor Faria

unread,
Sep 8, 2009, 9:08:32 AM9/8/09
to bacula-ba...@googlegroups.com
Estranho - realmente está desabilitado, mas ele entendeu como sse fosse
um autochanger.
Enfim.... SEu device não pode ser chamado através de nst0 não?
Eu não sei tb se esse AlwaysOpen se aplica para fitas.
Eu preciso da saída de erro qndo o Bacula tenta gravar na fita, após sua
tentativa de montagem.

Abraços!

thylds

unread,
Sep 10, 2009, 7:51:03 AM9/10/09
to Bacula Backup-Pt-Br
Bom dia pessoal, estive um tempo fora mas agora preciso finalizar este
backup

Realmente meu device estava errado como o Heitor disse acima, mas
agora estou com problemas no label
Segue abaixo

*run
A job name must be specified.
The defined Job resources are:
1: Windows
2: RestoreWindows
3: Linux
4: RestoreLinux
Select Job resource (1-4): 1
Run Backup job
JobName: Windows
Level: Incremental
Client: Windows
FileSet: Windows
Pool: Geral (From Job resource)
Storage: DAT (From Job resource)
When: 2009-09-10 08:29:15
Priority: 20
OK to run? (yes/mod/no): yes
Job queued. JobId=4
You have messages.
*
*
*
*
*
*
*mess
10-Set 08:29 sr.srembalagens.com.br-dir JobId 4: No prior Full backup
Job record found.
10-Set 08:29 sr.srembalagens.com.br-dir JobId 4: No prior or suitable
Full backup found in catalog. Doing FULL backup.
10-Set 08:29 sr.srembalagens.com.br-dir JobId 4: Start Backup JobId 4,
Job=Windows.2009-09-10_08.29.17_03
10-Set 08:29 sr.srembalagens.com.br-dir JobId 4: Using Device "DAT"
10-Set 08:29 sr.srembalagens.com.br-sd JobId 4: Job Windows.
2009-09-10_08.29.17_03 waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "DAT" (/dev/nst0)
Pool: Geral
Media type: DAT160
*
*
*label
Automatically selected Storage: DAT
Enter new Volume name: bkp-geral
Automatically selected Pool: Geral
Connecting to Storage daemon DAT at 10.4.0.1:9103 ...
Sending label command for Volume "bkp-geral" Slot 0 ...
3920 Cannot label Volume because it is already labeled: "DAT"
Label command failed for Volume bkp-geral.
Do not forget to mount the drive!!!


Como vcs podem ver ele pediu pra mim criar um label pro volume mas ja
tem um nome

Alguem poderia me ajudar

Grato

Heitor Faria

unread,
Sep 10, 2009, 5:58:16 AM9/10/09
to bacula-ba...@googlegroups.com
Vc está utilizando label automático.
Portanto, basta ter certeza que a fita seja montada.
Sempre, vc pode etiquetar a fita antes do backup.

www.bacula.com.br

thylds

unread,
Sep 10, 2009, 11:23:57 AM9/10/09
to Bacula Backup-Pt-Br
Nao tenho nenhum parametro que fala sobre label, parece que o bacula
esta esperando eu tomar alguma atitude
Se dou o comando mount ele fala pra usar o label e criar um label
Esta fita eu ja utilizei em outro backup e ja criei um label nela com
o nome DAT
Sera que tenho q limpar a fita, como faco isso utilizando o bacula?

Grato

OBS:

Running Jobs:
Console connected at 10-Set-09 11:57
JobId Level Name Status
======================================================================
4 Full Windows.2009-09-10_08.29.17_03 is waiting for an
appendable Volume
====
> > Grato- Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

Heitor Faria

unread,
Sep 10, 2009, 9:07:04 AM9/10/09
to bacula-ba...@googlegroups.com
Se a fita já está etiquetada vc precisa verificar qual o status do volume.
Para poder sobrescrevê-lo, use o comando purge.

thylds

unread,
Sep 14, 2009, 8:05:49 AM9/14/09
to Bacula Backup-Pt-Br
Usei o comando purge mas para qualquer opcao o Bacula fala que nao ha
nada na midia

Ainda continua o erro:

Please use the "label" command to create a new Volume for:
Storage: "DAT" (/dev/nst0)
Pool: Geral
Media type: DAT160

O resultado do comando status all

Device status:
Device "DAT" (/dev/nst0) is mounted with:
Volume: DAT
Pool: Geral
Media type: DAT160
Device is BLOCKED waiting to create a volume for:
Pool: Geral
Media type: DAT160
Total Bytes Read=129,024 Blocks Read=2 Bytes/block=64,512
Positioned at File=0 Block=0
====

Used Volume status:
DAT on device "DAT" (/dev/nst0)
Reader=0 writers=0 devres=1 volinuse=0
====


OBS: Para uma solucao mais direta eu preciso postar algum arquivo de
configuracao ou a saida de algum comando???


Muito obrigado

Matheus

thylds

unread,
Sep 14, 2009, 3:16:05 PM9/14/09
to Bacula Backup-Pt-Br
Apareceu uma mensagem antes sobre "appendable volumes", segue abaixo

14-Set 10:58 sr.srembalagens.com.br-sd JobId 5: Job Windows.
2009-09-11_02.30.00_08 waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "DAT" (/dev/nst0)
Pool: Geral
Media type: DAT160

Thiago Everton

unread,
Sep 15, 2009, 1:23:38 PM9/15/09
to bacula-ba...@googlegroups.com
Boa tarde,

Consegui fazendo assim;

Cancela o Job
Para o bacula
Start o Bacula
bconsole
* release <storage-name>

Start no job que você quer !

--
Atenciosamente,
--
Thiago Everton Vieira Santos
Analista de Suporte
Mestrando em Computação Aplicada - UECE
+55 (85) 9985-9316
--
blog.: http://blog.thiagoeverton.eti.br
--
Vagas.:http://www.vagasticeara.blogspot.com/

thylds

unread,
Sep 15, 2009, 3:09:19 PM9/15/09
to Bacula Backup-Pt-Br
Opa!!! Deu certo, esta rodando tudo certinho

Muito obrigado pessoal

Valeu mesmo!!!

Abracos

Matheus

thylds

unread,
Sep 16, 2009, 9:57:34 AM9/16/09
to Bacula Backup-Pt-Br
Bom dia pessoal, tenho duvidas novamente

Como disse acima os backups estao OK, mas tenho um cliente Windows que
conclui o backup com sucesso mas da erro de acesso restrito em alguns
arquivos
Tenho q dar q tipo de permissao no windows para o cliente do bacula
ter acesso normal aos arquivos, q usuario tenho q utilizar????

Abracos

Matheus

Heitor Faria

unread,
Sep 16, 2009, 7:21:36 AM9/16/09
to bacula-ba...@googlegroups.com
O usuário "Bacula".

Abraços!

thylds

unread,
Sep 17, 2009, 8:07:45 AM9/17/09
to Bacula Backup-Pt-Br
Bom dia!!!!

Tenho q criar este usuario?? Pois o cliente do bacula nao criou ele no
meu server Windows
Se tiver que criar q senha tenho q colocar e que tipo de usuario deve
ser????

Abracos

Matheus

Heitor Faria

unread,
Sep 17, 2009, 7:23:33 AM9/17/09
to bacula-ba...@googlegroups.com
Matheus,

Não trabalho muito com o Bacula no Windows, mas imagino que o instalador
deve crirar o usuário.

Abraços!

Anderson Mattos Bianchini

unread,
Sep 17, 2009, 10:50:01 AM9/17/09
to bacula-ba...@googlegroups.com
Matheus,

Eu tenho feito testes com clients Windows, cheguei também a fazer testes instalando o Bacula como Server, em todos os casos eu tive que fazer a instalação com o RunAs utilizando o user Administrador, ou outro que esteja no grupo de admins, inclusive hoje tenho um client rodando no meu AD e não ocorrem erros desse tipo.

uma coisa posso garantir, em nenhum momento tive que criar usuário para o Bacula.

falow

2009/9/17 Heitor Faria <hei...@bacula.com.br>



--
Anderson Mattos Bianchini
Mobile - 55 11 8273-5485
MSN - Skype - GoogleTalk - ander...@gmail.com

thylds

unread,
Sep 17, 2009, 11:04:07 AM9/17/09
to Bacula Backup-Pt-Br
OK!!! Muito obrigado, vou reinstalar meu cliente dessa maneira

Abracos

Matheus

On 17 set, 11:50, Anderson Mattos Bianchini <anderson...@gmail.com>
wrote:
> MSN - Skype - GoogleTalk - anderson...@gmail.com
Reply all
Reply to author
Forward
0 new messages