Menu

How to export the database without attachments through a script program in the trigger

venday
2021-03-02
2021-10-29
  • venday

    venday - 2021-03-02

    How to export the database without attachments through a script program in the trigger

     
  • Paul

    Paul - 2021-03-02

    I don't think you can easily do that in a trigger.

    Why do you want to export in a trigger?
    Why without attachments?

    cheers, Paul

     
    • venday

      venday - 2021-03-02

      The trigger can automatically export the database when it is saved. The database is automatically exported when it is started. The database is automatically exported when it is closed. Exporting a database without attachments will reduce the volume when opened on the mobile phone, and everything can be changed at any time on demand.

       
    • venday

      venday - 2021-03-02

      Now the database has reached 30M, and the capacity of the database after removing the attachments is only a few hundred KB. There is a plug-in on the official website that can create a database plug-in without attachments when saving the database, but I think this plug-in is not easy to use. Because every time the database is saved Will create a copy. As a result, more and more non-attached databases are created. I just want to create one. At the same time, I want to choose to create it on demand. For example, it is more convenient to create by clicking on the custom toolbar of the trigger.

       
  • Paul

    Paul - 2021-03-02

    KeePass is not designed to be a file store. What attachment to you need in KeePass that is so big?

    You could encrypt the file separately and store the password in KeePass.

    cheers, Paul

     
  • venday

    venday - 2021-03-08

    @dreichl
    Dear author. Can you have this plug-in to support custom save directories? Custom save quantity function

     
    • venday

      venday - 2021-03-08

      After the local disk database is saved, the generated lightweight database is saved to the synchronization disk for mobile phone use. Because my local database with attachments is too big

       
    • venday

      venday - 2021-10-29

      @dreichl KdbxLite has a database with a lot of attachments that has been stored for too long and it is stuck

       
      • venday

        venday - 2021-10-29

        After testing, using KdbxLite.plgx combined with KeeTrayTOTP.plgx plug-in to save the database often freezes

         
      • Paul

        Paul - 2021-10-29

        What is stuck? Full details please.
        What freezes? KeePass, saving the lite database?

        cheers, Paul

         
        • venday

          venday - 2021-10-29

          It is related to the KeeTrayTOTP plugin. There will be a freeze when saving the database, now I have replaced the keepsotp plug-in

           
  • Paul

    Paul - 2021-03-08

    Use a trigger to copy the file to the required directory.

    cheers, Paul

     
    • venday

      venday - 2021-03-08

      It is better to let the plugin implement this function directly.

       

Log in to post a comment.

MongoDB Logo MongoDB