discourse/spec/lib/backup_restore
Andrew Schleifer 74d28a43d1
new S3 backup layout (#9830)
* DEV: new S3 backup layout

Currently, with $S3_BACKUP_BUCKET of "bucket/backups", multisite backups
end up in "bucket/backups/backups/dbname/" and single-site will be in
"bucket/backups/".

Both _should_ be in "bucket/backups/dbname/"

- remove MULTISITE_PREFIX,
- always include dbname,
- method to move to the new prefix
- job to call the method

* SPEC: add tests for `VacateLegacyPrefixBackups` onceoff job.

Co-authored-by: Vinoth Kannan <vinothkannan@vinkas.com>
2020-05-29 00:28:23 +05:30
..
backup_file_handler_spec.rb REFACTOR: Restoring of backups and migration of uploads to S3 2020-01-14 11:41:35 +01:00
backuper_spec.rb REFACTOR: Clean up parameterized title 2019-07-18 15:49:16 -06:00
database_restorer_spec.rb DEV: Fix broken test due to 9ab5801a1b. 2020-05-15 15:00:04 +08:00
local_backup_store_spec.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00
meta_data_handler_spec.rb REFACTOR: Simplify backup version check 2020-01-15 23:37:40 +01:00
s3_backup_store_spec.rb new S3 backup layout (#9830) 2020-05-29 00:28:23 +05:30
shared_context_for_backup_restore.rb REFACTOR: Restoring of backups and migration of uploads to S3 2020-01-14 11:41:35 +01:00
shared_examples_for_backup_store.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00
system_interface_spec.rb REFACTOR: Restoring of backups and migration of uploads to S3 2020-01-14 11:41:35 +01:00
uploads_restorer_spec.rb DEV: Use a tmp directory for storing uploads in tests (#9554) 2020-04-28 14:03:04 +01:00