Re: Possible to copy backup pools from one storage to another?

Bill Arlofski via Bacula-users <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>
On 11/13/24 4:14 PM, Chris Wilkinson wrote:
> Yes, this is what I based my first attempt on but ran into the issue that it doesn't work copying diff and incr pools. That's 
> when I turned to the list for advice.
> 
> -Chris-

Hello Chris,

You have three "source" pools, with each having a "NextPool" setting pointing to its corresponding destination pool.

So far so good.

Now, you have one Copy (control) job defined - This is fine too.

You have "Level = Full" set in that CopyControl job, but just to be clear, that Level means nothing. It will be displayed in 
the CopyControl Job's Job level when running, and stored in the catalog when the job completes, but it literally means nothing.

Next, when you want to copy the jobs from the Diff pool, or Inc Pool you simply need to set on the command line:

pool=m910q-backup-differential
pool=m910q-backup-incremental

To tell the CopyControl job what source pool to look in for jobs that have not been copied anywhere yet.


So, for example to copy jobs from the Diff pool:

* run job=m910q-copy pool=m910q-backup-differential

This should override the "source" pool configured in your `m910q-copy` CopyControl job.

An example from my environment:
----8<----
*run job=Copy-X1carbon pool=Offsite-eSATA-Diff

Run Copy job
JobName:       Copy-X1carbon
Bootstrap:     *None*
Client:        NA
FileSet:       None
Pool:          Offsite-eSATA-Diff (From Command input)               <---- Source pool overridden on command line
NextPool:      Synology-Diff (From Job Pool's NextPool resource)     <---- NextPool, set in source pool
Read Storage:  bacula-file (From Job resource)                       <---- Bacula should correct this on the fly
Write Storage: bacula-syn (From Job Pool's NextPool resource)        <---- Storage set in Synology-Diff pool
JobId:         *None*
When:          2024-11-13 18:31:12
Catalog:       RevpolCatalog
Priority:      25
----8<----

Additionally, to automate this,
 the (source) Pool may be overridden in a Schedule like this:
----8<----
Schedule {
   Name = DailyCopyFromSynology
   Enabled = yes
   Run = Pool = Synology-Inc  mon-sat at 03:00    <-- Copy jobs from Inc pool every weekday & Saturday
   Run = Pool = Synology-Diff     sun at 04:00    <-- Copy jobs from Diff pool every Sunday
}
----8<----

Another option, which is more work to set up and maintain, is to create three CopyControl jobs, one for each level, and set 
each CopyControl job's Pool to be the Full, Inc, or Diff source pool, then set up Schedules for each of the CopyControl Jobs.

I prefer the former.


Hope this helps,
Bill

-- 
Bill Arlofski
[email protected]

_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
signature.asc (application/pgp-signature, 509 B)
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAnBQJnNVZdCRBIDTDab9XDQBYhBMuLnlBaSQiuSUbb6UgNMNpv
1cNAAAA6RAf9GdxhVaHHggh/olAlGV4+eOw59A8fcJD5mI0yvxvOOIrd7hk1
m6n4efVHmryH2UWYEMLvYBaVHf5TZeG46pR5dH8CU27S9DZa4c3AWb09g7VU
DqSh0UAvYYr/2vTQJLD/PPLI6PLEAur+jzbUkigLhn5YyStywBYzAeK5CTEv
Hh8xWGGWg/E8w12YyxAKXw+Xdur6H3f1kaSq3G6DMAEA+gAAy1nYFS3zvPmK
6nZUsi+yUK3hvn91FE1Q8ZcKxRZC2oyAsZqk5gL0Z4IHpPbYsIZMwIjh5I5W
GNpUu5WKYmJ+LNuNTyMA7sAcdlPo67S+c/U34B3jCkvQ9yCMM+SeoA==
=Buls
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.