cupcakearmy / autorestic

Config driven, easy backup cli for restic.
https://autorestic.vercel.app/
Apache License 2.0
1.16k stars 68 forks source link

Copy a repo #368

Open luckydonald opened 2 months ago

luckydonald commented 2 months ago

Is your feature request related to a problem? Please describe. I have source1 and want to copy to backend1

Describe the solution you'd like With #145 we have a copy feature.

location:
  from: source1
  to:
    - backend1 # fast
    - backend2 # slow
  copy:
    backend1:
      - backend3
      - backend4

however, how do I copy it ONLY from source1 to backend1?

I want to basically run

export RESTIC_REST_USERNAME="..." 
export RESTIC_REST_PASSWORD="..." 
restic -r ./repo copy --from-repo rest:https://${RESTIC_HOST}