dragotin / kraft

Kraft helps to handle your daily quotes and invoices in your small business.
http://volle-kraft-voraus.de
GNU General Public License v2.0
58 stars 18 forks source link

SQLite database location #127

Closed trummerschlunk closed 2 years ago

trummerschlunk commented 2 years ago

Hi. Thanks for the software! Is there a way to specify a location for the database (SQLite3)? I'd like to host the database in a synchronized nextcloud folder. Thanks!

dragotin commented 2 years ago

Sure, in the setup routine you can either select a "standard location" or pick the path manually. grafik

dragotin commented 2 years ago

If you want to keep an existing sqlite db you can:

  1. Shutdown kraft
  2. Check in $HOME/.config/kraftdatabaserc where the current location is, that is key DbFile.
  3. Copy the file from there to the new, desired location.
  4. Change the path in the config above manually.
  5. Start kraft and check if it is picked up correctly in the "about Kraft" page.