跳至主要内容

备份您的流数据和配置

Owncast automatically backs up its database once an hour to data/backup/owncastdb.bak inside your Owncast directory. You can point the backup somewhere else by starting Owncast with --backupdir <path>. Add this file to your normal system backups to keep your configuration, users, and chat history safe.

What the automatic backup covers

The automatic backup contains only the database: your configuration, users, chat history, and access tokens. Other data lives as plain files under the data/ directory and is not included, such as custom emoji, files in data/public, GeoIP data, and installed plugins and their data.

To fully protect an instance, or to move it to another machine, back up the entire data/ directory instead. Copying data/ to a new install carries everything over.

恢复

Restoring a database backup file brings the database back to the time the backup was created. This is useful if you want to undo a bad change or recover from database corruption.

Owncat warns you

恢复将用备份的内容替换您当前的数据库。 自从备份创建以来所发生的任何更改都将丢失。 如果您可能需要当前数据,请在恢复之前将其复制到安全的地方。

  1. 停止 Owncast 运行。
  2. 从您的 Owncast 目录运行 ./owncast --restoreDatabase <backupfile>
  3. 按常规方式重新启动 Owncast。 它将使用恢复的数据。

Improve this page

See something missing or incorrect? Edit this page and improve the documentation for everyone.

Contributors to this documentation