Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Write forget and copy options with correct name #197

Closed
wants to merge 1 commit into from
Closed

Write forget and copy options with correct name #197

wants to merge 1 commit into from

Conversation

Chostakovitch
Copy link
Contributor

@Chostakovitch Chostakovitch commented May 16, 2022

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.

@vercel
Copy link

vercel bot commented May 16, 2022

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)

@Chostakovitch
Copy link
Contributor Author

@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.

@patrick-motard
Copy link

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

@Chostakovitch Chostakovitch closed this by deleting the head repository Nov 5, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autorestic check creates an empty string forgetoption that is invalid
2 participants