Merge repositories

Is there a way to merge two restic repositories? I don’t see a flag but maybe there is a workaround?

The final encryption keys might be different, but the user passwords are the same.

Like 90% of data is common and it’s taking space.

As far as I understand, everything in a repo is encrypted with the same key.

If you don’t care for one user having access to both old repositories data, you can use restic copy, though due to probably different chunker params duplication might happen between those.

I’m not sure how or if it is possible to copy in a “rechunking” way.

Yes, ish. Take a look at the copy command.