<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="backup" xml:lang="zh-CN">
<info>
  <link type="guide" xref="index"/>
  <desc>如何备份活动的数据库。</desc>
</info>
<title>备份</title>

<p>活动存储在一个 SQLite 数据库里，位于 <file>~/.local/share/hamster-time-tracker/hamster.db</file>。应用程序会在一个短时间后自动重载数据。</p>
<note style="info">
    <p>
        For viewing contents of the database we can suggest using the
        <link href="https://sqlitebrowser.org/"><app>DB Browser for SQLite (DB4S)</app></link>.
    </p>
</note>
<note style="info">
    <p>
        Previously the database was stored in
        <file>~/.local/share/hamster-applet/hamster.db</file>.
        Recent versions of Hamster create a hard link between the old and new
        files.  Any one of these files can be removed safely (they are
        references to the same item).  The database is lost only if both
        references are deleted.
    </p>
</note>

</page>
