Skip to content

Automatic backup

Robert Goldmann edited this page May 8, 2021 · 4 revisions

Backup strategies

  • File system copies
  • Local git repository
  • Remote git repository

File system copies

Exports the BudgetMaster database as json file. The backups will be stored in your_home_directory/Deadlocker/BudgetMaster/backups.

Settings

  • Number of backups to keep - Specify how many files will be kept at most before deleting the oldest ones. Use 0 for unlimited number of files.

Local git repository

Adds and commits the BudgetMaster database to a local git repository. This allows you to go back in history if needed.
The git repository will be located at your_home_directory/Deadlocker/BudgetMaster/backups/git.

Note: git must NOT be installed

Settings

None


Remote git repository

Clones the specified remote repository to your file system. Adds and commits the BudgetMaster database to the local git repository and pushes the changes to the remote.
The git repository will be located at your_home_directory/Deadlocker/BudgetMaster/backups/git.

Note: git must NOT be installed

Settings

  • git server address - The complete URL to the repository using HTTPS (e.g. https://github.com/deadlocker8/BudgetMaster.git)
  • git branch name - The name of the branch. Please make sure this branch exists on the remote git server.
  • git user name - The user name to use for login.
  • git access token - The access token to use for login.

How to get an access token

GitHub

Create a new personal access token with all repo permissions (select the checkbox repo and all subelements).
Note: Make sure to save the token somewere safe, as you won't be able to access it again!
Further information on how to create a personal access token can be retrieved from the GitHub Docs:
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token

GitLab

Create a new project access token pro the repository with read_repository and write_repository permissions.
Note: Make sure to save the token somewere safe, as you won't be able to access it again!
Further information on how to create a project access token can be retrieved from the GitLab Docs:
https://docs.gitlab.com/ce/user/project/settings/project_access_tokens.html