Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Change key mode #510

Closed
skruppy opened this issue Dec 25, 2015 · 5 comments
Closed

Change key mode #510

skruppy opened this issue Dec 25, 2015 · 5 comments
Milestone

Comments

@skruppy
Copy link

skruppy commented Dec 25, 2015

It would be great to be able to change an existing repo from keyfile to repokey mode (and vice versa).

@ThomasWaldmann
Copy link
Member

Yes. And also from (deprecated) passphrase to repokey mode, which is already covered in #97.

@ThomasWaldmann ThomasWaldmann added this to the 1.1 - near future features milestone Feb 20, 2016
@ThomasWaldmann ThomasWaldmann modified the milestones: 1.3, 1.1 - near future goals Apr 17, 2016
@textshell
Copy link
Member

from looking into this because of a question on irc.

Changing the key borg loads from a keyfile to a repokey only needs to move the data over to the repo with save_key and change the type field of the manifest crypto envelope.

But AESKeyBase checks the type of each chunk it decrypts and would bail there. Which leaves rewriting the whole repository or declaring all AES legacy based types to be equivalent. From just thinking about it for a few seconds i don‘t see any real harm from that.

@ThomasWaldmann
Copy link
Member

see also #2153.

@borgbackup borgbackup deleted a comment from varac Mar 5, 2022
@borgbackup borgbackup deleted a comment from enkore Mar 5, 2022
@borgbackup borgbackup deleted a comment from Mirodin Mar 5, 2022
@borgbackup borgbackup deleted a comment from Mirodin Mar 5, 2022
@borgbackup borgbackup deleted a comment from fullofcaffeine Mar 5, 2022
@borgbackup borgbackup deleted a comment from Mirodin Mar 5, 2022
@borgbackup borgbackup deleted a comment from fullofcaffeine Mar 5, 2022
@borgbackup borgbackup deleted a comment from ams-tschoening Mar 6, 2022
@ThomasWaldmann
Copy link
Member

superseded by #2153.

@psy-q
Copy link

psy-q commented May 9, 2023

I realize this is closed, but is there an interface to use this, similar to borg key migrate-to-repokey? I don't understand how the linked MRs make htis possible and it seems like a useful feature.

Never mind, I see this might be part of Borg 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants