using git to sync encrypted journals #1446
Unanswered
thetayloredman
asked this question in
Q&A
Replies: 2 comments 6 replies
-
@thetayloredman Hi, and thanks for filing an issue! The problem that you're running into is that The way to do this is:
And that should be it. I just tested this locally, and I can see the diff in plain text for my test journal even though the journal file itself stays encrypted the entire time. |
Beta Was this translation helpful? Give feedback.
5 replies
-
I think so... I'll have to export both to a tmpfs however or it's not D-A-R.
…On Sat, Apr 9, 2022 at 4:36 PM Jonathan Wren ***@***.***> wrote:
Oh, sorry about that. I thought the point was about git, but it seems that
I misunderstood.
In that case, you could use --import
<https://jrnl.sh/en/stable/reference-command-line/#-import>. You can
import the same journal into itself and the entries will be de-duplicated
(e.g. jrnl --co journals.default.journal ./some_file.jrnl --format text |
jrnl --import), so you'll be left with just the different entries.
I'm not as familiar with git merge strategies, but I think you can
basically use the same trick from above (with --config-override/--co and --format
text) to have jrnl operate on files without having to decrypt anything
yourself. This should allow you to do anything you'd normally do with jrnl
through git instead.
Does that answer your question?
—
Reply to this email directly, view it on GitHub
<#1446 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGJBKAMSLOISYLCBYWH64N3VEIH6FANCNFSM5S74DFWA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Support Request
Environment
--diagnostic
output:What are you trying to do?
I am trying to synchronize journals using Git. The problem here is my jrnls must be encrypted.
What have you tried?
I am trying to write a merge engine to decrypt and re-encrypt the journals. The problem is I only want to prompt for a password once. I also need to read the list of journals programmatically. I am not sure how to pass the --decrypt a password from the command line (not STDIN)
Other Information
Suggested: ENV.JRLNCRYPT_PASSWORD and
jrnl --list --style=json
Beta Was this translation helpful? Give feedback.
All reactions