Skip to content

send-after / send-after-fail not triggering when in a non-default profile block #571

@ilium007

Description

@ilium007

My send-after / send-after-fail URL's work fine inside the backup and copy commands in the default profile but when I added a second profile and included send-after / send-after-fail they are not triggered.

version: 1

global:
  ionice: false
  ionice-class: 2
  ionice-level: 6
  default-command: snapshots
  initialize: true
  min-memory: 100

  restic-lock-retry-after: 1m
  restic-stale-lock-age: 2h

default:
  repository: rest:http://xxx
  password-file: /resticprofile/key
  initialize: false

  env:
    TMPDIR: /mnt/TANK/resticprofile/tmp
    GOGC: 20

  backup:
    host: truenas01.sapling

    verbose: true
    source:
      - /mnt/TANK/PHOTOGRAPHY
      - /mnt/TANK/SUPPORT

    exclude-caches: true
    exclude:
      - /**/.git
      - /**/*.iso
      - /**/.cache/restic
      - /**/.cache
      - /**/#snapshot
      - /**/.vscode-server
      - /**/tmp
    tag:
      - resticprofile

    send-after:
      url: https://hc-ping.xxx
    send-after-fail:
      url: https://hc-ping.xxx/fail

  forget:
    host: truenas01.sapling
    #after-backup: true
    keep-daily: 7
    keep-weekly: 4
    keep-monthly: 6
    keep-tag:
      - protected
    prune: true

  copy:
    host: truenas01.sapling
    repository: rest:https://xxx.borgbase.com
    password-file: /resticprofile/key
    initialize: true
    initialize-copy-chunker-params: true
    snapshot: latest

    send-after:
      url: https://hc-ping.xxx
    send-after-fail:
      url: https://hc-ping.xxx/fail

media:
  repository: rest:http://xxx
  password-file: /resticprofile/key
  initialize: true

  env:
    TMPDIR: /mnt/TANK/resticprofile/tmp
    GOGC: 20

  backup:
    host: truenas01.sapling

    verbose: true
    source:
      - /mnt/TANK/MEDIA

    exclude-caches: true
    exclude:
      - /**/.git
      - /**/*.iso
      - /**/.cache/restic
      - /**/.cache
      - /**/#snapshot
      - /**/.vscode-server
      - /**/tmp
    tag:
      - resticprofile

    # THESE ARE NOT TRIGGERED 
    send-after:
      url: https://hc-ping.xxx
    send-after-fail:
      url: https://hc-ping.xxx/fail

  forget:
    host: truenas01.sapling
    keep-daily: 7
    keep-weekly: 4
    keep-monthly: 6
    keep-tag:
      - protected
    prune: true

borgbase:
  repository: rest:https://xxx.borgbase.com
  password-file: /resticprofile/key
  initialize: false

  host: truenas01.sapling

  env:
    TMPDIR: /mnt/TANK/resticprofile/tmp
    GOGC: 20

  forget:
    host: truenas01.sapling
    keep-daily: 7
    keep-weekly: 4
    keep-monthly: 6
    keep-tag:
      - protected
    prune: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions