Seems that I have confused:

Media Type
Device Type

So.. I tried this:

Added the following configs and created the path with permissions for bareos:

#/etc/bareos/bareos-sd.d/device/CopyStorage.conf
Device {
  Name = CopyStorage01
  Media Type = Copy
  Archive Device = /var/lib/bareos/copy
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
  Maximum Concurrent Jobs = 1
}


#/etc/bareos/bareos-dir.d/storage/Copy.conf
Storage {
  Name = Copy
  Address = 10.10.10.10
  Password = "storagepassword"
  Device = CopyStorage01 #the device pointing to /var/lib/bareos/copy
  Media Type = Copy #here was my earlier mistake, got a new name now
  Maximum Concurrent Jobs = 5
}


#/etc/bareos/bareos-dir.d/pool/bareos-fd-copy.conf
Pool {
  Name = bareos-fd-copy #basically a config copy of the original pool, no 
changes here..
  Pool Type = Backup
  Recycle = yes
  Recycle Oldest Volume = yes
  AutoPrune = yes
  Action On Purge = Truncate
  Volume Retention = 14 days
  Maximum Volumes = 16
  Maximum Volume Jobs = 1
  Storage = Copy #my new storage pointing to the copy directory
}

#/etc/bareos/bareos-dir.d/job/bareos-fd-copy.conf
Job {
  Name = bareos-fd-copy
  FileSet = bareos-fd #not really needed?
  Type = Copy #this is a copyjob
  Client = bareos-fd #not really needed?
  Schedule = nightly_2300
  Storage = Copy #specify storage (media type) should go via bareos-sd -> 
/var/lib/bareos/copy
  Messages = Standard
  Pool = bareos-fd #pool to copy
  Priority = 10
  Selection Type = PoolUncopiedJobs #self explaining
}

Now I'm getting a lot further in this setup, however new roadbump.. :

Fatal error: JobId XXX cannot Copying using the same read and write storage.

-- 
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