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

Copying entries from one KeePassDB to another #251

Open
blauertee opened this issue Mar 13, 2021 · 0 comments
Open

Copying entries from one KeePassDB to another #251

blauertee opened this issue Mar 13, 2021 · 0 comments

Comments

@blauertee
Copy link

blauertee commented Mar 13, 2021

Morning!

I'm trying to copy entries from one KeePassDB to another. I don't want to add these entries with the kp.add() method since that would change the Last time edited info and change the uuid.

I found no way to do this with methods provided by the library, so what I did is:

old_db_group._element.append(new_db_entry._element)
old_db.save()

Is this a safe solution? Is there another provided by pykeepass?

PS: My end goal is to write a merge/sync routine. That overwrites older entries and adds entries that did only exist in one DB to the other. A method like kp0.merge(kp1 :: PyKeePass, overwrite_older :: bool) could also be a useful enhancement.

Thank's in advance,

Jakob

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

No branches or pull requests

1 participant