Job {
  Name = "copy-local"
  Type = Copy
  Pool = Full
  Selection Type = Volume
  Selection Pattern = "."
  Client = "bareos-fd"
  Messages = Standard
  Run Script {
    Runs On Client = No
    Runs When = Before
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
  Run Script {
    Runs On Client = No
    Runs When = After
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
}

Job {
  Name = "copy-to-offsite"
  Type = Copy
  Pool = FullCopy
  Selection Type = Volume
  Selection Pattern = "."
  Client = "bareos-fd"
  Messages = Standard
  Run Script {
    Runs On Client = No
    Runs When = Before
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
  Run Script {
    Runs On Client = No
    Runs When = After
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
}

Job {
  Name = "copy-offsite"
  Type = Copy
  Pool = Offsite
  Selection Type = Volume
  Selection Pattern = "."
  Client = "bareos-fd"
  Messages = Standard
  Run Script {
    Runs On Client = No
    Runs When = Before
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
  Run Script {
    Runs On Client = No
    Runs When = After
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
}

Job {
  Name = "copy-from-offsite"
  Type = Copy
  Pool = OffsiteCopy
  Selection Type = Volume
  Selection Pattern = "."
  Client = "bareos-fd"
  Messages = Standard
  Run Script {
    Runs On Client = No
    Runs When = Before
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
  Run Script {
    Runs On Client = No
    Runs When = After
    Command = "echo 'prevjobid=%O newjobid=%N'"
  }
}
