Menu

#1163 [2.x] Dereference fields when exporting

open
nobody
5
2019-01-05
2009-01-19
Luckyrat
No

It would be useful to be able to export a part of a database with all reference fields evaluated to their current values at export time.

This forum thread is one possible use case: https://sourceforge.net/forum/message.php?msg_id=5743104

Here are three possible solutions (my preferred solution at the top)

1) When exporting, KeePass could attempt to follow every reference field and replace it with its current dereferenced value. If the reference field refers to a field in a database entry that is also being exported, the reference field itself can be exported. Advanced options could be added to either always dereference fields or never dereference them. Ideally, this option could be configured for each database but a program-wide option would be OK.
2) When exporting, KeePass could attempt to follow every reference field and replace it with its current dereferenced value. An option could be changed if you user wants to export the field references instead.
3) When exporting, KeePass could export the field reference (as per version 2.05). An option could be changed if you user wants to export the dereferenced value instead.

Discussion

  • Paul

    Paul - 2009-01-21

    1. The export should dereference every field unless the export is to a KeePass V2 database, in which case your logic should be followed.

    cheers, Paul

     
  • Noah Pivnick

    Noah Pivnick - 2012-07-03

    +1

    fwiw.

     
  • mh166

    mh166 - 2013-01-03

    +1

     
  • Suncatcher

    Suncatcher - 2017-12-18

    +1

     
  • Paul

    Paul - 2017-12-19

    Exporting to HTML will dereference fields in the next release.
    https://sourceforge.net/p/keepass/feature-requests/2319/

    cheers, Paul

     
    • Suncatcher

      Suncatcher - 2017-12-19

      Exporting to HTML will dereference fields in the next release.

      And what about exporting to CSV? Will it be covered too?

       
  • Dominik Reichl

    Dominik Reichl - 2017-12-19

    No. Dereferencing support needs to be implemented for each export format separately, and what Paul mentioned only applies to printing / HTML export.

    Best regards,
    Dominik

     
  • Suncatcher

    Suncatcher - 2017-12-19

    And what about CSV? Is it planned at all?

     
  • Dominik Reichl

    Dominik Reichl - 2017-12-19

    Not right now, but I think the idea is good, so the feature might be implemented in a future version.

    Best regards,
    Dominik

     
  • Chris

    Chris - 2018-11-04

    -

     

    Last edit: Chris 2019-01-04
    • Chris

      Chris - 2019-01-04

      I also don't need this feature anymore.
      I don't need reference, because I use SubsetExport to generate copies for other users:
      https://github.com/lukeIam/KeePassSubsetExport/releases
      It's much more easier and once configurated it works automaticaly.

       
  • Peter

    Peter - 2018-11-26

    wow this has almost been open for 10 years.
    i dont really understand how the export is useful without this

     
  • Suncatcher

    Suncatcher - 2018-11-28

    I cannot agree more

     
  • Brett

    Brett - 2019-01-03

    I am using KeePass 2.39
    Below is the process that I used to export a subset of my database which including Referenced values:
    1) Move entries that you would like to export into a Group
    2) Right click on the Group and select Export
    3) Choose the Customizable HTML File format, specify the export file name and click Ok
    4) On the Layout tab, under Options, change Placeholders to Replace and click Export
    5) Open the exported file with your web browser (I used Firefox and Chrome for testing)
    6) Select and copy the text
    7) Paste the text into Notepad and save as a .txt file
    8) Return to your original KeePass database or a new database where you want the entries
    8) On the KeePass file menu, select Import
    9) Choose the Generic CSV Importer, specify the import file name and click Ok
    9) On the Structure tab, change Field separator to {Tab}
    10) Optionally, check Ignore first row
    11) Check the results on the Preview tab and click Finish
    12) The entries will be imported into the main Database group in KeePass.

    I realize that this process is somewhat convoluted but it allows for "easy" export of a group of entries which will contain up to date Reference information. I am using this to export a subset of entries for use on my phone where, for security reasons, I do not want to have my entire database.

    Also, be smart about the exported HTML and Notepad .txt files that you create using this process. Those files should be deleted using some sort of Secure Delete process, or should only be created on an encrypted file system, or both.

    I hope that you find this useful.

     
  • Brett

    Brett - 2019-01-05

    I received a couple helpful responses. I haven't used KeePass Plugins before but was directed to the Plugins/Export section of the KeePass website which has a couple options. I set up KeePassSubsetExport which works well.
    https://keepass.info/plugins.html

    Thanks again to those who responded.

     

Log in to post a comment.

MongoDB Logo MongoDB