# 恢复后 sidekiq jobs 如何被重新创建？

**URL:** <https://meta.discourse.org/t/how-do-sidekiq-jobs-get-re-created-after-a-restore/161070>\
**Category:** Self-hosting\
**Created:** [2020 年8 月 16 日 22:19 UTC](https://meta.discourse.org/t/how-do-sidekiq-jobs-get-re-created-after-a-restore/161070 "2020-08-16T22:19:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2020 年8 月 16 日 22:19 UTC](https://meta.discourse.org/t/how-do-sidekiq-jobs-get-re-created-after-a-restore/161070/1 "2020-08-16T22:19:01Z")

</div>

我想将某个站点的 PostgreSQL 和 Redis 服务器迁移到另一台机器。迁移 PostgreSQL 相对简单。但 Sidekiq 中还有数百个排队任务（至少包括 `ToggleTopicClosed` 和 `UnpinTopic`）。似乎没有直接的方法迁移单个 Redis 数据库（你可以复制整个 Redis 实例，但这不适合只迁移单个编号数据库）。如果我执行完整的备份和恢复，这些任务会被重新创建吗？如果会，迁移完成后，有没有简单的手动方式触发它们？

或者，我是否应该决定不再关心这些排队的任务？（这似乎不太妥当 🤔）

---

_[View the full topic](https://meta.discourse.org/t/how-do-sidekiq-jobs-get-re-created-after-a-restore/161070)._
