Hi again,
Most of it is working correct, wihtout the last step.
What i want to achieve:
1) Incremental Backups from my clients -> go to AI-Pool [OK]
2) Consolidate the incrementals every ~month -> go to AI-Consolidated-Pool [OK]
3) Make a VirtualFullBackup every 3 Month -> go to AI-Longterm-Pool [OK]
4) Copy all Jobs from AI-Longterm-Pool to AI-Longterm-Extern-Pool, manually triggerd [not working]
Steps 1-3 are ok. I got a VirtualFullBackup in the AI-Longterm pool:
Choose a query (1-21): 14
Enter Volume name: AI-Longterm-0011
+-------+-----------------+---------------------+------+-------+---------+---------+--------+
| jobid | name | starttime | type | level | files | gb | status |
+-------+-----------------+---------------------+------+-------+---------+---------+--------+
| 4 | VirtualLongTerm | 2020-08-06 22:27:05 | A | F | 247,188 | 417.346 | T |
+-------+-----------------+---------------------+------+-------+---------+---------+--------+
*
This is the pool definition for my AI-Longterm-Pool:
Pool {
Name = AI-Longterm
Pool Type = Backup
Next Pool = AI-Longterm-Extern
Recycle = yes # Bareos can automatically recycle Volumes
Auto Prune = yes # Prune expired volumes
Volume Retention = 7 months # How long should jobs be kept?
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Label Format = "AI-Longterm-"
Volume Use Duration = 23h
Storage = File
}
And this my AI-Longertm-Extern-Pool:
Pool {
Name = AI-Longterm-Extern
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 2 years # 2 years fullbacks are stored / fullbackup is do>
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Volume Use Duration = 23h
Storage = ExternFile
Label Format = AI-Longterm-Extern-
}
And here is the copy job i definied:
Job {
Name = "LongtermCopyToExtern"
Type = Copy
Selection Type = PoolUncopiedJobs
Messages = Standard
Pool = AI-Longterm
Level = Full
Full Backup Pool = AI-Longterm
Write Bootstrap = "/media/bareosExternBackup/bareos/bootstrap/LongtermCopyToExtern-%n.bsr"
}
Sadly, if i run this one, no jobs are found to be copied:
07-Aug 15:18 storageSrv-dir JobId 11: No JobIds found to copy.
07-Aug 15:18 storageSrv-dir JobId 11: Bareos storageSrv-dir 19.2.7 (16Apr20):
Build OS: Linux-3.10.0-1062.18.1.el7.x86_64 debian Debian GNU/Linux 10 (buster)
Current JobId: 11
Current Job: LongtermCopyToExtern.2020-08-07_15.18.54_04
Catalog: "MyCatalog" (From Client resource)
Start time: 07-Aug-2020 15:18:56
End time: 07-Aug-2020 15:18:56
Elapsed time: 0 secs
Priority: 10
Termination: Copying -- no files to copy
Maybe, it's because the jobs in AI-Longterm are of the type: Archive? How to select them?
Or what else I'm missing?
Thanks a lot.
Toni