Re: [Bacula-users] How to properly remove volumes in regards to the catalog?
2016-05-19 09:43:52
Hello.
I see that I did not use "Purge Migration Job = yes", That should
explain, while the old volumes still exist fully.
Sorry for the very rough question.
I will try to make the scenario a bit more understandable:
On the hard drive we have on site, a new volume is created every
month, starting with a full backup, so that we always need just one
volume for any restore process.
I would like to keep this seperation when migrating the volumes to
an external drive. I do not know how to do it without creating
several jobs though. Each Volume has a different size, so "Maximum
Volume Bytes" is not an option.
Here is an example job and pool:
Job {
Name = "Migrate-WS-003"
Type = Migrate
Client = ubuntu_fd
FileSet = None
Level = Full
Messages = Standard
Storage = Storage_WS-003
Pool = Pool_WS-003
Write bootstrap =
"/mnt/removableDrive/WS-003/bootstrap_%c.bsr"
Selection Type = Client
Selection Pattern = "WS-003_fd"
Reschedule On Error = no
}
Pool {
Name = External_WS-003
Pool Type = Backup
Recycle = no
AutoPrune = no
Volume Retention = 5 year
Storage = RemovableStorage_WS-003
}
Pool {
Name = Pool_WS-003
Pool Type = Backup
Recycle = no
AutoPrune = no
Volume Retention = 1 year
Label Format = "WS003-Volume"
Next Pool = External_WS-003
}
Regards,
Florian S.
Am 19.05.2016 um 15:28 schrieb
Wanderlei Huttel:
What exactly you want? Your question is not so
clear.
If you have 5 old volumes in one pool and you want to move
this old volumes to another pool you can use a migration job.
Job{
Name = "Migration_Job"
Type = Migrate
JobDefs = "Backup_Defaults"
Client = srv_bacula-fd
FileSet = "FileSet_SRV_Bacula"
Pool = "Pool-Old"
NextPool = "Pool-New"
Selection Type = SqlQuery
Selection Pattern = "select distinct JobId from
JobMedia where MediaId in (select MediaId from Media where
VolumeName like 'Volume-Name-%');"
Purge Migration Job = yes
Enabled = no
}
Pool{
Name = "Pool-Old"
Pool Type = Backup
Autoprune = yes
LabelFormat = "Volume-Name-${NumVols}"
Maximum Volume Bytes = 10Gb
Maximum Volumes = 100
NextPool = "Pool-New"
Storage = StorageLocal
}
|
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|