autorestic icon indicating copy to clipboard operation
autorestic copied to clipboard

copy to backblaze fails

Open cschritt opened this issue 1 year ago • 9 comments

autorestic version: 1.7.1 restic version: 0.13.1

backends:
  local:
    type: local
    path: /backup/data
    key: $KEY
  backblaze:
    type: b2
    path: '$PATH'
    key: $KEY
    env:
      B2_ACCOUNT_ID: '$ID'
      B2_ACCOUNT_KEY: '$KEY'

locations:
  data:
    from:
    - /data
    to:
    - local
    copy:
      local: 
        - backblaze

With this config on an initialized b2 repository, the copy fails for no apparent reason.

user@host:~> autorestic -c .config/restic/autorestic.yaml backup --ci --verbose --all
Backend: local
> Executing: /usr/local/bin/restic backup --tag ar:location:data /data
using parent snapshot xxx

Files:           0 new,     0 changed, xxx unmodified
Dirs:            0 new,     0 changed,  xxx unmodified
Added to the repo: 0 B

snapshot xxx of [/data] at 2022-08-17 20:24:20.645239574 +0200 CEST)
  copy started, this may take a while...
snapshot xxx saved
Copying local → backblaze
> Executing: /usr/local/bin/restic copy xxx

Running hooks
[...]
exit status 1

Is there any way to debug this further?

cschritt avatar Aug 17 '22 18:08 cschritt

I think it's a problem with restic since autorestic just call the restic binary with the proper arguments

rdelaage avatar Aug 28 '22 16:08 rdelaage

Have you run check?

cupcakearmy avatar Sep 13 '22 13:09 cupcakearmy