Re: [Bacula-users] How to properly remove volumes in regards to the catalog?
2016-05-20 01:26:33
Hello.
I am sorry, but this is actually not at all, what I want.
I took some time to think about how to explain all this better...
So I have two drives: <LocalDrive> and <ExternalDrive>
I am using a shell script to create a new Volume on
<LocalDrive> every month. This script is executed by a bacula
job.
<LocalDrive> has run out of space now, so I need to move the
existing volumes to <ExternalDrive>, i.e. I do not want to
keep the same backups on both drives.
So corresponding to previous replies I got, I created migration jobs
and pools / storages for them.
I tried the job for one of my Clients.
Actual Result:
<LocalDrive> still has Volumes <Volume-January>,
<Volume-February>, etc.
<ExternalDrive> has 1 single Volume <ExternalVolume>
Catalog references <ExternalVolume>
Desired Result:
<LocalDrive> only has the currently active Volume left:
<Volume-May>
<ExternalDrive> has the remaining Volumes in the same
structure they were before: <Volume-January>,
<Volume-February>, etc.
Catalog references <Volume-January>, <Volume-February>,
etc. on <ExternalDrive> and <Volume-May> on
<LocalDrive>
So the questions are...
1. In the actual result <LocalDrive> is still full.
Can I simply remove the volumes that are no longer referenced by the
Catalog?
2. Is there any way for me to achieve the desired result
with the job configuration or is an SQL script required?
Again, thank you very much for taking your time to help.
Regards,
Florian S.
Am 19.05.2016 um 16:18 schrieb
Wanderlei Huttel:
I understood that you want to keep both backups
(default drive 1 year retention and external drive 5 years
retention)
I guess the best way is to use Copy Jobs.
Type = Copy
"Copy is a new type that defines the job that is run as
being a Copy Job. A Copy Job is a sort of control job and
does not have any Files associated with it, and in that
sense they are more or less like an Admin job. Copy jobs
simply check to see if there is anything to Copy then
possibly start and control new Backup jobs to copy the data
from the specified Pool to another Pool. Note that when a
copy is made, the original JobIds are left unchanged. The
new copies can not be used for restoration unless you
specifically choose them by JobId. If you subsequently
delete a JobId that has a copy, the copy will be
automatically upgraded to a Backup rather than a Copy, and
it will subsequently be used for restoration."
I guess this will help you.
Just change "Type = Migration" to "Type = Copy"
Is interesting to use at least 7.0 bacula version because
has a lot of improvements
|
------------------------------------------------------------------------------
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
|
|
|