Boa tarde
Estou com esses problemas
Quando eu dou comando
estimate listing
mosta os arquivos do backup. Até aqui tudo bem
Essas são as configurações do servidor no arquivo
Job {
Name = "Backup Cliente"
Client = cliente-fd
JobDefs = "DefaultJob"
FileSet = "cliente_Set"
}
Job {
Name = "Backup Cliente2"
Client = clientebacula-fd
JobDefs = "DefaultJob"
FileSet = "cliente_Set"
FileSet {
Name = "cliente_Set"
Include {
Options {
signature = MD5
}
File = /home
}
Exclude {
}
}
Schedule {
Name = "WeeklyCycle"
Run = Incremental Pool=Diaria monday-saturday at 18:37
Run = Full Pool=Semanal 2nd-5th saturday at 18:37
Run = Full Pool=Mensal 1st friday at 18:37
}
Quando dou comando run mostra essa mensagem:
*run
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
A job name must be specified.
The defined Job resources are:
1: BackupServidor
2: Backup Cliente
3: Backup Cliente2
4: BackupCatalog
5: RestoreFiles
Select Job resource (1-5): 3
Run Backup job
JobName: Backup Cliente2
Level: Incremental
Client: clientebacula-fd
FileSet: cliente_Set
Pool: Diaria (From Job resource)
Storage: File (From Job resource)
When: 2017-12-09 19:15:41
Priority: 10
OK to run? (yes/mod/no): yes
yes: is an invalid command.
*label
Automatically selected Storage: File
Enter new Volume name: backup
Defined Pools:
1: Default
2: File
3: Mensal
4: Scratch
5: Diaria
6: Semanal
5
Connecting to Storage daemon File at localhost:9103 ...
Sending label command for Volume "backup" Slot 0 ...
3937 Device ""FileStorage" (/backup)" is busy with writers=0 reserved=1.
Label command failed for Volume backup.
Do not forget to mount the drive!!!
*
Quando dou o comando status mostra tudo ok que esta conectando
só que não está fazendo os backups dos clientes
*status
Status available for:
1: Director
2: Storage
3: Client
4: All
Select daemon type for status (1-4): 3
The defined Client resources are:
1: debian-fd
2: cliente-fd
3: clientebacula-fd
Select Client (File daemon) resource (1-3): 2
Connecting to Client cliente-fd at 192.168.0.22:9102
cliente-fd Version: 5.2.6 (21 February 2012) x86_64-pc-linux-gnu debian jessie/sid
Daemon started 09-Dez-17 11:39. Jobs: run=0 running=0.
Heap: heap=270,336 smbytes=38,125 max_bytes=76,727 bufs=94 max_bufs=159
Sizeof: boffset_t=8 size_t=8 debug=0 trace=0
Running Jobs:
JobId 7 Job Backup_Cliente.2017-12-09_18.37.00_05 is running.
Full System or Console Job started: 09-Dez-17 19:08
Files=0 Bytes=0 Bytes/sec=0 Errors=0
Files Examined=0
SDSocket closed.
Director connected at: 09-Dez-17 19:19
====
Terminated Jobs:
====
*
Problema é que não esta fazendo o backup automático no horário estabelecido
Só faz o backup do servidor
Ele cria as pool diária e semanal
root@debian:/backup# ls
backservidor backupclinete2 diaria-0 teste tete
backucliente dezecliente1 semanal-0 teste02
*list volume
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Default
No results to list.
Pool: File
+---------+----------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
+---------+----------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | teste | Append | 1 | 10,433,237 | 0 | 31,536,000 | 1 | 0 | 0 | File | 2017-12-09 14:54:57 |
| 2 | backucliente | Append | 1 | 196 | 0 | 31,536,000 | 1 | 0 | 0 | File | |
| 3 | backupclinete2 | Append | 1 | 198 | 0 | 31,536,000 | 1 | 0 | 0 | File | |
| 4 | dezecliente1 | Append | 1 | 196 | 0 | 31,536,000 | 1 | 0 | 0 | File | |
| 5 | backservidor | Append | 1 | 196 | 0 | 31,536,000 | 1 | 0 | 0 | File | |
| 6 | tete | Append | 1 | 188 | 0 | 31,536,000 | 1 | 0 | 0 | File | |
| 7 | teste02 | Append | 1 | 191 | 0 | 31,536,000 | 1 | 0 | 0 | File | |
+---------+----------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Mensal
No results to list.
Pool: Scratch
No results to list.
Pool: Diaria
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 8 | diaria-0 | Append | 1 | 76,613,260 | 0 | 518,400 | 1 | 0 | 0 | File | 2017-12-09 18:38:14 |
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Semanal
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
+---------+------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 9 | semanal-0 | Append | 1 | 77,766,930 | 0 | 2,246,400 | 1 | 0 | 0 | File | 2017-12-09 18:38:24 |
+---------+------------+-----------+---------
Quando escolho opção 8 diária:
*list files jobid=8
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
+-------+-----------------+-----------+------+-------+----------+----------+-----------+
| jobid | name | starttime | type | level | jobfiles | jobbytes | jobstatus |
+-------+-----------------+-----------+------+-------+----------+----------+-----------+
| 8 | Backup Cliente2 | | B | I | 0 | 0 | C |
+-------+-----------------+-----------+------+-------+----------+----------+-----------+
*restore
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): 3
Enter JobId(s), comma separated, to restore: 8
You have selected the following JobId: 8
Building directory tree for JobId(s) 8 ...
For one or more of the JobIds selected, no files were found,
so file selection is not possible.
Most likely your retention policy pruned the files.
Do you want to restore all the files? (yes|no):
Schedule {
Name = "WeeklyCycle"
Run = Incremental Pool=Diaria monday-saturday at 18:37
Run = Full Pool=Semanal 2nd-5th saturday at 18:37
Run = Full Pool=Mensal 1st friday at 18:37
}
No files selected to be restored.
*list jobs
+-------+-----------------+---------------------+------+-------+----------+------------+-----------+
| jobid | name | starttime | type | level | jobfiles | jobbytes | jobstatus |
+-------+-----------------+---------------------+------+-------+----------+------------+-----------+
| 1 | BackupClient1 | 2017-12-09 14:48:51 | B | F | 0 | 0 | f |
| 2 | BackupClient1 | 2017-12-09 14:53:34 | B | F | 175 | 10,401,808 | T |
| 3 | Backup Cliente | 2017-12-09 16:55:52 | B | F | 0 | 0 | f |
| 4 | BackupServidor | 2017-12-09 18:37:01 | B | F | 6,124 | 75,588,002 | T |
| 5 | BackupServidor | 2017-12-09 18:38:15 | B | F | 6,126 | 76,740,290 | T |
| 6 | Backup Cliente | 2017-12-09 18:38:25 | B | F | 0 | 0 | f |
| 7 | Backup Cliente | 2017-12-09 19:08:25 | B | F | 0 | 0 | f |
| 8 | Backup Cliente2 | 2017-12-09 19:38:25 | B | F | 0 | 0 | R |
| 9 | Backup Cliente2 | | B | F | 0 | 0 | C |
| 10 | BackupCatalog | | B | I | 0 | 0 | C |
| 11 | BackupCatalog | | B | F | 0 | 0 | C |
+-------+-----------------+---------------------+------+-------+--
Ele mostra só que faz o backup na lista, mas no restore aparece a mensagem abaixo.
*restore
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): 3
Enter JobId(s), comma separated, to restore: 7
You have selected the following JobId: 7
Building directory tree for JobId(s) 7 ...
For one or more of the JobIds selected, no files were found,
so file selection is not possible.
Most likely your retention policy pruned the files.
Do you want to restore all the files? (yes|no):
Não sei se ficou claro o que eu quis dizer, mas não estou conseguindo fazer. Tentei colocar todas as configurações como a video aula, mas deve ter algum erro que não está dando certo.