I use this config for disk-to-tape in Bareos 16.2.4.

If you use an older version of Bareos, you need to add the config definitions 
to the monolithic bareos.conf file (But I strongly recommend to use Bareos >= 
16.2 with its modular config files approach, as it is much clearer).

Pools I use:
Disk Pool name:   Default
LTO6 Pool name: Tape

Config files:

/etc/bareos/bareos-dir.d/jobdefs/copy-disk-to-tape.conf:

# Copy Disk To Tape Job Definition
# The docs say to use a „Dummy“ Client, but this causes problems
# with "status all". Therefore, we assign the director-fd as it doesn't
# matter at all.
JobDefs {
 Name = "CopyDiskToTape"
 Type = Copy
 Messages = Standard
 Client = <my-director>-fd
 FileSet = None
 Selection Type = PoolUncopiedJobs
 Maximum Concurrent Jobs = 10
 SpoolData = No
 Allow Duplicate Jobs = Yes
 Allow Higher Duplicates = No
 Cancel Queued Duplicates = No
 Cancel Running Duplicates = No
 Priority = 100
}


/etc/bareos/bareos-dir.d/job/copy-disk-to-tape.conf:

# Copy to Tape pool
Job {
 Name = "CopyDiskToTape"
 Enabled = Yes
 Schedule = DaySchedule6:00
 Pool = Default                            # see „NextPool“ definition in 
Default.conf for the target pool
 JobDefs = CopyDiskToTape
}


/etc/bareos/bareos-dir.d/schedule/DaySchedule.conf:

# Ensures copy runs after the nightly backups
# Performs another copy at 11:30 to ensure all jobs are copied.
# If all jobs are copied already, nothing is performed.
Schedule {
  Name = DaySchedule6:00
  Run = Level=Full daily at 6:00
  Run = Level=Full daily at 11:30
}


/etc/bareos/bareos-dir.d/fileset/none.conf

# Fake fileset for copy jobs
Fileset {
 Name = None
 Include {
   Options {
     signature = MD5
   }
 }
}


/etc/bareos/bareos-dir.d/pool/Default.conf:

# Default B2D pool definition
Pool {
 Name = Default
 Pool Type = Backup
 Storage = File
 Recycle = yes                      # Bacula can automatically recycle Volumes
 AutoPrune = yes                  # Prune expired volumes
 Volume Retention = 10d      # 10 days
 Volume Use Duration = 9d 
 RecycleOldestVolume = yes
 LabelFormat = b2d-
 Maximum Volume Bytes = 50G
 # Next pool to use if running copy jobs
 NextPool = Tape 
}

> Am 29.06.2017 um 10:08 schrieb Niall Hallett <[email protected]>:
> 
> Does anyone have any idea how to get disk to tape jobs running?
> 
> Cheers,
> Niall
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to