Nov 252010
 

With Bacula, a great piece of backup software [disclosure: I wrote the PostgreSQL module for Bacula], you can copy a Job after it has run. This is often used to backup first to disk, and then Copy that Job to tape. That is exactly what I’ve been doing recently.

NOTE: You can also migrate a Job, which is very similar to a Job Copy. With a Job Copy, the original Job remains and will be used for any restore. Should the original Job be unavailable, Bacula will then see the Copy and it will be available for use. With a migration, the Job is moved from one Volume to another. the original is no longer available.

I was reading up on Copy this morning. I saw the part about the endtime versus realendtime and type. I wanted to have a look:

 jobid |                    job                     |        name         |       endtime       |     realendtime     | type
-------+--------------------------------------------+---------------------+---------------------+---------------------+------
 40187 | nyi_maildir.2010-11-25_00.00.00_06         | nyi maildir         | 2010-11-25 00:01:01 | 2010-11-25 00:01:01 | B
 40186 | nyi_maildir.2010-11-24_20.00.00_05         | nyi maildir         | 2010-11-24 20:00:15 | 2010-11-24 20:00:15 | B
 40185 | ngaio.2010-11-24_18.14.52_04               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 18:14:57 | C
 40184 | CopyMegaFileToTape.2010-11-24_18.14.51_03  | CopyMegaFileToTape  | 2010-11-24 18:14:57 | 2010-11-24 18:14:57 | c
 40183 | ngaio.2010-11-24_18.11.40_01               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 18:11:45 | C
 40182 | CopyMegaFileToTape.2010-11-24_18.11.40_00  | CopyMegaFileToTape  | 2010-11-24 18:11:45 | 2010-11-24 18:11:45 | c
 40181 | ngaio.2010-11-24_18.06.48_57               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 18:06:53 | C
 40180 | CopyMegaFileToTape.2010-11-24_18.06.48_56  | CopyMegaFileToTape  | 2010-11-24 18:06:53 | 2010-11-24 18:06:53 | c
 40179 | ngaio.2010-11-24_18.05.24_54               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 18:05:29 | C
 40178 | CopyMegaFileToTape.2010-11-24_18.05.24_53  | CopyMegaFileToTape  | 2010-11-24 18:05:29 | 2010-11-24 18:05:29 | c
 40177 | ngaio.2010-11-24_18.03.34_51               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 18:03:39 | C
 40176 | CopyMegaFileToTape.2010-11-24_18.03.34_50  | CopyMegaFileToTape  | 2010-11-24 18:03:39 | 2010-11-24 18:03:39 | c
 40175 | ngaio.2010-11-24_17.59.12_48               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 17:59:17 | C
 40174 | CopyMegaFileToTape.2010-11-24_17.59.11_47  | CopyMegaFileToTape  | 2010-11-24 17:59:17 | 2010-11-24 17:59:17 | c
 40173 | MigrateDiskToTape.2010-11-24_17.59.01_46   | MigrateDiskToTape   | 2010-11-24 17:59:03 | 2010-11-24 17:59:03 | g
 40172 | ngaio.2010-11-24_17.55.48_44               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 17:55:53 | C
 40171 | CopyMegaFileToTape.2010-11-24_17.55.48_43  | CopyMegaFileToTape  | 2010-11-24 17:55:53 | 2010-11-24 17:55:53 | c
 40170 | ngaio.2010-11-24_17.54.19_41               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 17:54:25 | C
 40169 | CopyMegaFileToTape.2010-11-24_17.54.19_40  | CopyMegaFileToTape  | 2010-11-24 17:54:25 | 2010-11-24 17:54:25 | c
 40168 | ngaio.2010-11-24_17.51.40_38               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 17:51:45 | C
 40167 | CopyMegaFileToTape.2010-11-24_17.51.39_37  | CopyMegaFileToTape  | 2010-11-24 17:51:45 | 2010-11-24 17:51:45 | c
 40166 | ngaio.2010-11-24_16.49.10_35               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 16:49:15 | C
 40165 | CopyMegaFileToTape.2010-11-24_16.49.10_34  | CopyMegaFileToTape  | 2010-11-24 16:49:15 | 2010-11-24 16:49:15 | c
 40164 | ngaio.2010-11-24_16.47.19_32               | ngaio               | 2010-11-24 16:47:51 | 2010-11-24 16:47:51 | B
 40163 | nyi_maildir.2010-11-24_16.00.00_30         | nyi maildir         | 2010-11-24 16:00:15 | 2010-11-24 16:00:15 | B
 40162 | nyi_maildir_tarball.2010-11-24_12.01.00_29 | nyi maildir tarball | 2010-11-24 12:39:27 | 2010-11-24 12:39:27 | B

Compare the values you see in the type field with those you see listed in the Bacula Developers Guide. My interpretation

  • C – the job which was copied
  • c – the job you ran which copied the job
  • B – a backup job

I have a strong desire to rewrite the Copy/Migrate documentation. I can see where it will confuse some people.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive