mtlynch / resticpy

Minimal Python wrapper around the restic backup command-line interface.
https://mtlynch.github.io/resticpy/
MIT License
52 stars 19 forks source link

add support to set repository_version if init restic repository #171

Closed unclesamwk closed 1 week ago

unclesamwk commented 1 week ago

The newer versions of restic use a new repository format with new features. In legacy environments it may be useful to support both version of repository formats.

mtlynch commented 1 week ago

Thanks for contributing! I didn't realize there's a new format.

Can you document this new flag and add a unit test to exercise the new behavior?

unclesamwk commented 1 week ago

Ive update the pullrequest. Please check the unit test, i dont know it is the right way

mtlynch commented 1 week ago

Thanks for adding this, @unclesamwk!