keepassxreboot / keepassxc

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

Backup settings for each Database #8497

Open MrCybertux opened 2 years ago

MrCybertux commented 2 years ago

Summary

Making a menu for choosing the Backup location of each database individually. So i as a user can choose in witch directory the backup should go for each individual database.

Examples

so this: image

Should be here too: image

Little crude but like this: 2022-09-23_16-11_edit

Context

Since i use a Nextcloud and KeepassXC combo at work and for Private purposese a per Database setting of the Backup would be nice, so i do not mix private and company data.

agowa commented 3 months ago

I was just about to open a feature request about almost the same feature. I would like to have the backup settings within the database files and thereby be specific to the database file and not the hosting instance of KeePassXC.

As in you open "mySecrets.kdbx" and it contains the backup target and backup settings, regardless of what computer you're opening it on. Speaking of it, does the entry placeholder {DB_DIR} currently already work within the backup path? Alternatively a path within the databases backup setting could always be interpreted as originating from the backup file location backup/{DB_FILENAME}-{TIME:yyyy-MM-dd-hh-mm-ss}.kdbx would point to the backup folder within {DB_DIR} (the directory the database file itself is in; probably a good idea to not allow arbitrary paths as well as ".."-ing out of it).

And on another note, this feature request would also kinda be the pre-requirement for in the future adding e.g. S3, SFTP, ... backup targets for a database (where database specific backup targets are really going to be useful)