resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

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

Open ilium007 opened this issue 2 months ago • 1 comments

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

ilium007 avatar Oct 28 '25 22:10 ilium007

I don't understand, the media profile is the same as the other one.

Do you see these flags mentioned in the show command?

resticprofile show@media (or resticprofile -n media show)

creativeprojects avatar Nov 15 '25 14:11 creativeprojects