keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
21.43k stars 1.48k forks source link

Export selected entries/groups to new database, CSV, or HTML #1940

Open droidmonkey opened 6 years ago

droidmonkey commented 6 years ago

Feature Request

Be able to export selected entries to create a new database from a master database. Exported entries may be kept or removed from the master database upon export.

Requested by a customer.

Possible Solution

Add to the CLI and/or make a GUI tool

ThatMandem commented 6 years ago

Yes. Please.

jbrice commented 6 years ago

That would be so useful!

Pentaphon commented 5 years ago

I have always wanted this. It would be a good way to make DBs for less secure devices like a Windows PC that is always online. You can export everything except email, bank, shopping and government passwords so that if you get pwned, they will get only that DB with trivial logins like forums, entertainment, etc , not the one with the most sensitive logins.

droidmonkey commented 5 years ago

Technically you can do this now rather easily using KeeShare

spacemanspiff2007 commented 5 years ago

Currently copy paste between different databases does not work. A possibility to copy/move certain entries to a different database would be highly apreciated!

droidmonkey commented 4 years ago

Also allow export to CSV and HTML for printing

Asmodan123 commented 4 years ago

A very nice extension of this "Export Entries to an other DB" feature would be to persist the target DB on the selected entries to repeat the export periodically. This would be helpful to create a primary DB which contains all password, which are changed/updated periodically. Than the export to the Sub-DB can be repeated easily.

droidmonkey commented 4 years ago

That feature is already available using KeeShare. Read the user guide for more information.

Sebi2020 commented 2 years ago

That feature is already available using KeeShare. Read the user guide for more information.

This is really not the same as the requested feature...

droidmonkey commented 2 years ago

I am responding to the comment above, thanks

thyxNY commented 2 years ago

W will wait for export to html/csv some entries. It is nice to see this feature in 2.8.0 ;-)

For me best is:

I will wait ;-)

genepine commented 2 years ago

Hello I wrote a blog about how to implement this function in the operation method. https://pinefield.asia/portforio/keepassxc-export-selected-groups-to-new-database/

Avihais12344 commented 2 years ago

This option is available on the original Keepass software.

gehaxelt commented 1 year ago

Please implement this :+1:

lewart commented 1 year ago

This is really not the same as the requested feature...

If you need to export some selected entries, it means they have something in common. It may be a good idea to organize them in a group. A KeeShare feature, which is implemented since 2.4, forces you to organize your database. Is that the difference from request above, youre talking about?

ttomasini commented 1 year ago

This is really not the same as the requested feature...

If you need to export some selected entries, it means they have something in common. It may be a good idea to organize them in a group. A KeeShare feature, which is implemented since 2.4, forces you to organize your database. Is that the difference from request above, youre talking about?

@lewart thank you very much for your proposal but I think this feature request actually contains two separate use cases.

Only one would be maybe covered by your idea:

Maybe it is a good idea to distinguish between these two cases in separate issues as well.

droidmonkey commented 1 year ago

Both of those use cases are covered under this issue and would be part of the same code contribution. No need for another issue.

Sebi2020 commented 1 year ago

@lewart

If you need to export some selected entries, it means they have something in common. It may be a good idea to organize them in a group. A KeeShare feature, which is implemented since 2.4, forces you to organize your database. Is that the difference from request above, youre talking about?

Yes, but I would agree with you about organizing entries which have something in common as a group. But if we're talking about exports you maybe have more than one way to categorize items. Maybe you want to export some passwords on a regular basis from different groups, but don't want to export all passwords of a group. I think entry tags would be much more suitable for this use case as they allow you to categorize an item in more than one way. For example you could have a category "Wifi passwords" and a separate category "Exportable passwords". If you combine this with a feature "Export tag entries" this would give users much more flexibility.

lewart commented 1 year ago

I think entry tags would be much more suitable for this use case as they allow you to categorize an item in more than one way. If you combine this with a feature "Export tag entries" this would give users much more flexibility.

I agree. Sharing not only by group, but also by tag, would be realy useful.

feefladder commented 1 year ago

+1 for the tagging system! Also, for people that didn't find it in the documentation, but did find this issue, here is the link to keeshare documentation: https://keepassxc.org/docs/KeePassXC_UserGuide#_database_sharing_with_keeshare (The table of contents is really long, I was confused by that at first, but docs look great in general)

arkanoid87 commented 8 months ago

6 years, really?

droidmonkey commented 8 months ago

Absent writing code for this, here is your solution (takes about 30 seconds):

  1. Unlock database you want to export from
  2. Create new database, nothing special required
  3. Drag group / entries from source database, hold CTRL, drag to new Database, drop. A copy of the entries will be made
  4. Export new Database to CSV
  5. Close new Database, don't save changes
arkanoid87 commented 8 months ago

thanks! I also managed to workaround the issue by moving to database, save, copy the dest db file, move back, delete intermediate db

dragging with CTRL was not obvious. How about right click drag + contextual menu move/copy?

droidmonkey commented 8 months ago

certainly can be investigated, holding CTRL while dragging to make a copy is relatively standard. Works in Windows Explorer as well ;-)

genepine commented 8 months ago

thanks! I also managed to workaround the issue by moving to database, save, copy the dest db file, move back, delete intermediate db

dragging with CTRL was not obvious. How about right click drag + contextual menu move/copy?

Use in combination with the CTRL key to select multiple entries within a folder. For example, if you have entry ABC, you want to select only A and C.

  1. Hold down the CTRL key and select entries A and C in the folder on database A
  2. Drag to the tab of the database B you want to copy
  3. Once the database B is switched, drop it into the folder you want to copy.
  4. Save database B , don't save database A