Files @ 02c820c5c48e
Branch filter:

Location: kallithea/docs/usage/backup.rst

02c820c5c48e 512 B text/prs.fallenstein.rst Show Annotation Show as Raw Download as Raw
Thomas De Schampheleire
tests: use pytest-benchmark for performance tests

pytest-benchmark is a benchmarking suite for individual functions. It
presents itself as a pytest fixture, i.e. you accept it as a test function
argument, and then can use it to benchmark a function.

Output is presented in the following form:

----------------------------------------- benchmark: 1 tests ----------------------------------------
Name (time in s) Min Max Mean StdDev Median IQR Outliers(*) Rounds Iterations
-----------------------------------------------------------------------------------------------------
test_graphmod_git 3.1122 3.1682 3.1295 0.0236 3.1196 0.0313 1;0 5 1
-----------------------------------------------------------------------------------------------------
.. _backup:

====================
Backing up Kallithea
====================


Settings
--------

Just copy your .ini file, it contains all Kallithea settings.


Whoosh index
------------

The Whoosh index is located in the ``data/index`` directory where you installed
Kallithea, i.e., the same place where the ini file is located


Database
--------

When using sqlite just copy kallithea.db.
Any other database engine requires a manual backup operation.

A database backup will contain all gathered statistics.