autorestic icon indicating copy to clipboard operation
autorestic copied to clipboard

Write forget and copy options with correct name

Open Chostakovitch opened this issue 2 years ago • 1 comments

This PR attempts to fix #194 : when config is written back (for now, only when generating a secret key for a new repository), forget and copy field of locations are written with an invalid name.

This PR only does renaming in the code so that current configs still work while writing the correct field names.

Chostakovitch avatar May 16 '22 10:05 Chostakovitch

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
autorestic ✅ Ready (Inspect) Visit Preview May 16, 2022 at 10:33AM (UTC)

vercel[bot] avatar May 16 '22 10:05 vercel[bot]

@cupcakearmy until the configuration file is not written back anymore, could you please consider to merge this ? I need to use autorestic check in an Ansible script, resulting in an unusable configuration file.

Chostakovitch avatar Nov 01 '22 00:11 Chostakovitch

I would also like to see this get merged. It's a real hassle to deal with. @Chostakovitch , here is a workaround that can be used in ansible:

    - name: update autorestic configuration
      shell: |
        autorestic check
        awk '!/forgetoption/' ~/.autorestic.yml > tmpfile && mv tmpfile ~/.autorestic.yml

patrick-motard avatar Feb 12 '23 17:02 patrick-motard