-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Full synchronization on CLI #2184
Comments
The problem with sync is when there are conflicts... To manage all the kinds of conflicts that can occur you would have to recreate a complete git-like tool :{ If your problem is just about typing twice the password and you're using bash, a workaround could be: As an exercise, I let it up to you to rewrite that as a script that does not store the pass in clear (e.g. expecting the env var to be set or asking it on the command line but with no echo...) |
keepass2 has this feature, no conflict resolution dialog needed. |
@Querulous
That being said, I agree with you that having a "synchronize" command would make the user more confident that he is doing the right thing and ends up with both databases in the correct state. |
@joaoportela As I remember merging databases doesn't leave them in identical state. Ideally synchronization should work as you described it. |
@Querulous I was just proposing that, based on the documentation.
Since the |
Hi Team,
|
Is this issue still on your radar? How likely is this to be implemented? |
Here's what I'm using for a sync to Google Drive, so I can merge changes made using keepass2android on Android with changes made using KeepassXC on my Linux desktop. Because I'm using This script may permanently and unrecoverably mangle your databases or entire computer. Do not run it without backups. Make sure you exit any interactive KeepassXC sessions before running.
Be warned that there is a race condition here. Changes made to the remote file after the remote is downloaded will be lost. Don't do that. To make this free from races in the absence of a co-operative protocol with other apps accessing it would require a way to take some kind of exclusive write lease on the remote file. To use this, you'll first have to install Also beware, KeepassXC doesn't seem to keep the filehandle to the database file open while running, so I can't use |
Why? The gui will detect when the db file is updated and silently reload it. |
It would be great if
keepassxc-cli
has option to synchronize databases and leave them in identical state.Expected Behavior
One command to synchronize two databases for example:
keepassxc-cli synchronize $first $second
Current Behavior
Currently I have to run two commands to achive this (and type password twice):
The text was updated successfully, but these errors were encountered: