<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="backup" xml:lang="zh-HK">
<info>
  <link type="guide" xref="index"/>
  <desc>如何備份活動資料庫。</desc>
</info>
<title>備份</title>

<p>活動都儲存在 SQLite 資料庫中，就在 <file>~/.local/share/hamster/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>
