Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Activity manager service Activity manager service
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • Activity manager serviceActivity manager service
  • Merge requests
  • !1

Resources database backup system

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ivan Čukić requested to merge ivan/resources-database-backup into master Jun 06, 2020
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 10

More and more things depend on KAMD's resources database. Recent documents, favourites, KRunner, to name a few.

Now, SQLite is fairly stable with the write-ahead-log that has been enabled in KAMD for ages, but corruptions can still happen. Sometimes in SQLite, sometimes in the underlying file system.

This patch introduces a two-step backup system for the resources database. On each start, the current database files are copied to test-backup directory.

If no error appeared during the previous KAMD run, the test-backup files are promoted to working-backup.

This means that in order for a specific version of the database to be considered as 'working' (promoted to a working backup), it needs to have been a beginning of an error-free KAMD session.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ivan/resources-database-backup