mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +08:00
d5ef6188ed
It pauses Sidekiq, clears Redis (namespaced to the current site), clears Sidekiq jobs for the current site, restores the database and unpauses Sidekiq. Previously it stayed paused until the end of the restore. Redis is cleared because we don't want any old data lying around (e.g. old Sidekiq jobs). Most data in Redis is prefixed with the name of the multisite, but Sidekiq jobs in a multisite are all stored in the same keys. So, deleting those jobs requires a little bit more logic. |
||
---|---|---|
.. | ||
backup_file_handler_spec.rb | ||
backuper_spec.rb | ||
database_restorer_spec.rb | ||
local_backup_store_spec.rb | ||
meta_data_handler_spec.rb | ||
s3_backup_store_spec.rb | ||
shared_context_for_backup_restore.rb | ||
shared_examples_for_backup_store.rb | ||
system_interface_spec.rb | ||
uploads_restorer_spec.rb |