mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 12:44:00 +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.rb | ||
backup_store.rb | ||
backuper.rb | ||
database_restorer.rb | ||
factory.rb | ||
local_backup_store.rb | ||
logger.rb | ||
meta_data_handler.rb | ||
restorer.rb | ||
s3_backup_store.rb | ||
system_interface.rb | ||
uploads_restorer.rb |