keepass 2 portable keeps only 7 backups in portable mode ,help

Discussion in 'other software & services' started by mantra, Jan 10, 2023.

  1. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,193
    hi
    i'm using keepass 2 portable
    to backup my database i have followed the tutorial here https://keepass.info/help/kb/trigger_examples.html

    but i would like to keep only 7 backups
    in the tutorial there is
    Code:
    /c for /f "skip=7 tokens=*" %X in ('dir "C:\Backup\{DB_BASENAME}.*" /b /o:-d') do del "C:\Backup\%X"
    I have changed in
    Code:
    /c for /f "skip=7 tokens=*" {DB_BASENAME}.{DT_SIMPLE} in ('dir ""{DB_DIR}\BackupDatabase\{DB_BASENAME}.*" /b /o:-d') do del "{DB_DIR}\BackupDatabase\{DB_BASENAME}.{DT_SIMPLE}"
    and
    Code:
    /c for /f "skip=7 tokens=*" %X in ('dir "{DB_DIR}\BackupDatabase\{DB_BASENAME}.*" /b /o:-d') do del "{DB_DIR}\BackupDatabase\%X"
    but it give me always an error , BackupDatabase is a folder inside the root of keepass
    with this trigger it works ,but it fill the folder up
    Code:
    /c copy "{DB_PATH}" "{DB_DIR}\Backups\{DB_BASENAME}.{DT_SIMPLE}"
    how can i keep 7 backups in the folder BackupDatabase in the portable version
    thanks
    take care
     
  2. SouthPark

    SouthPark Registered Member

    Joined:
    Jun 13, 2012
    Posts:
    737
    Location:
    South Park, CO
  3. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,193
    hi
    do you trust of the plugins?
    with the trigger should work
    thanks
     
  4. SouthPark

    SouthPark Registered Member

    Joined:
    Jun 13, 2012
    Posts:
    737
    Location:
    South Park, CO
    It's listed on the official KP site (the first under the backup category), so I take it to be trustworthy. I've used it for about a year with no problems.
     
  5. SouthPark

    SouthPark Registered Member

    Joined:
    Jun 13, 2012
    Posts:
    737
    Location:
    South Park, CO
    Update: based on the apparent won't-fix flaw in KeePass that isn't present in KeePassXC, I've switched to KeePassXC Portable. It opens a KP 2.x database without problems, but it doesn't accept plug-ins due to their perceived risks. The unpacked app is over 260 MB on disk and uses 46 MB of RAM but isn't noticeably slow on my old laptop w. SSD. (KP 2 was 6 MB unpacked and used <1 MB RAM.)
     
  6. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,193
    hi SouthPark
    i did not know about the flaw in keepass, but he/she does need to use the local machine , it's enough a portable version on an usb stick/pen
    about keepassxc i don't trust about it , many open source are developed by unknown person maybe with names but are you sure they are real
    there are many opensource that are not trusty think about audacity
    thanks for the information ,I have appreciated it , take care mate!
     
  7. SouthPark

    SouthPark Registered Member

    Joined:
    Jun 13, 2012
    Posts:
    737
    Location:
    South Park, CO
  8. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,193
    hi @SouthPark
    appreciate it a lot , i will use it ,i do prefer it over keepasXC
    but the official keepass developers hasn't update the code in the homepage or in sourceforge
    thanks mate
     
    Last edited: Feb 5, 2023
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.