From 888ec057498933e4fcc484b98f9b0befd7fabeb1 Mon Sep 17 00:00:00 2001 From: Don Richards Date: Mon, 4 Dec 2023 11:07:41 -0500 Subject: [PATCH] Enable Backup & Migrate and CORS enable --- .gitignore | 2 ++ ...e.backup_migrate_destination.private_files.yml | 11 +++++++++++ ...ate.backup_migrate_schedule.daily_schedule.yml | 15 +++++++++++++++ ...p_migrate.backup_migrate_source.default_db.yml | 11 +++++++++++ ..._migrate.backup_migrate_source.entire_site.yml | 11 +++++++++++ ...igrate.backup_migrate_source.private_files.yml | 12 ++++++++++++ ...migrate.backup_migrate_source.public_files.yml | 12 ++++++++++++ config/sync/core.extension.yml | 1 + web/sites/default/settings.php | 1 + 9 files changed, 76 insertions(+) create mode 100644 config/sync/backup_migrate.backup_migrate_destination.private_files.yml create mode 100644 config/sync/backup_migrate.backup_migrate_schedule.daily_schedule.yml create mode 100644 config/sync/backup_migrate.backup_migrate_source.default_db.yml create mode 100644 config/sync/backup_migrate.backup_migrate_source.entire_site.yml create mode 100644 config/sync/backup_migrate.backup_migrate_source.private_files.yml create mode 100644 config/sync/backup_migrate.backup_migrate_source.public_files.yml diff --git a/.gitignore b/.gitignore index 76171429f..549eb6d48 100755 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,5 @@ codebase/web/libraries/masonry # Composer authentication cache file, possibly generated by idc.Makefile for CI (ci.yml) authentication: **/auth.json web/sites/default/services.yml + +private/backup_migrate/ diff --git a/config/sync/backup_migrate.backup_migrate_destination.private_files.yml b/config/sync/backup_migrate.backup_migrate_destination.private_files.yml new file mode 100644 index 000000000..d08ec82a5 --- /dev/null +++ b/config/sync/backup_migrate.backup_migrate_destination.private_files.yml @@ -0,0 +1,11 @@ +uuid: e22b3463-e3ad-4eef-9d79-df1fcb97c894 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: 4iy5jeoTP0Y4BqSaV1C6cz4GKLFea1tWzk3ez1_CMVU +id: private_files +label: 'Private Files Directory' +type: Directory +config: + directory: 'private://backup_migrate/' diff --git a/config/sync/backup_migrate.backup_migrate_schedule.daily_schedule.yml b/config/sync/backup_migrate.backup_migrate_schedule.daily_schedule.yml new file mode 100644 index 000000000..73a4e4dd4 --- /dev/null +++ b/config/sync/backup_migrate.backup_migrate_schedule.daily_schedule.yml @@ -0,0 +1,15 @@ +uuid: 26f08e3f-c0d9-4405-82a4-99798b17aedc +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: B6mQr6j7ZcqZB14S8ytJEXCYzOQ1mcOW9-oWYbtkbJc +id: daily_schedule +label: 'Daily Schedule' +enabled: true +keep: 20 +period: 604800 +cron: null +source_id: default_db +destination_id: private_files +settings_profile_id: null diff --git a/config/sync/backup_migrate.backup_migrate_source.default_db.yml b/config/sync/backup_migrate.backup_migrate_source.default_db.yml new file mode 100644 index 000000000..8ef2bd8cb --- /dev/null +++ b/config/sync/backup_migrate.backup_migrate_source.default_db.yml @@ -0,0 +1,11 @@ +uuid: ac173aa2-b660-41f3-93cd-86c82b813a49 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: I0ambmTIGFVABBaGMLbQcw-a5eWKxnsz7k2COEPKga4 +id: default_db +label: 'Default Drupal Database' +type: DefaultDB +config: + name: 'Default Drupal Database' diff --git a/config/sync/backup_migrate.backup_migrate_source.entire_site.yml b/config/sync/backup_migrate.backup_migrate_source.entire_site.yml new file mode 100644 index 000000000..80ad3c27c --- /dev/null +++ b/config/sync/backup_migrate.backup_migrate_source.entire_site.yml @@ -0,0 +1,11 @@ +uuid: fc522623-22d2-4bec-9d19-dae2aadbbe05 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: 3UIiYanpaojRQR_MLcmaOBTXo5mH-T4CGoTEmr7Rv2M +id: entire_site +label: 'Entire Site (do not use)' +type: EntireSite +config: + name: 'Entire Site (do not use)' diff --git a/config/sync/backup_migrate.backup_migrate_source.private_files.yml b/config/sync/backup_migrate.backup_migrate_source.private_files.yml new file mode 100644 index 000000000..f5cc77a93 --- /dev/null +++ b/config/sync/backup_migrate.backup_migrate_source.private_files.yml @@ -0,0 +1,12 @@ +uuid: fb8acd13-e65f-48f6-9a6a-788e797b282b +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: skfrgCS5JC2HXCG6QfQfiuuFWy_-OQ5Qs0FvaPwc6Vc +id: private_files +label: 'Private Files Directory' +type: DrupalFiles +config: + name: 'Private Files Directory' + directory: 'private://' diff --git a/config/sync/backup_migrate.backup_migrate_source.public_files.yml b/config/sync/backup_migrate.backup_migrate_source.public_files.yml new file mode 100644 index 000000000..1343566f9 --- /dev/null +++ b/config/sync/backup_migrate.backup_migrate_source.public_files.yml @@ -0,0 +1,12 @@ +uuid: 5ee539d1-7def-4808-b2d6-bc2173c2bd82 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: PY9HA-hogF4_qq5gZ-TqZDTixx170-APxTcq4rpa014 +id: public_files +label: 'Public Files Directory' +type: DrupalFiles +config: + name: 'Public Files Directory' + directory: 'public://' diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 873a1bf97..01f40d4e5 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -5,6 +5,7 @@ module: admin_toolbar_tools: 0 advanced_search: 0 automated_cron: 0 + backup_migrate: 0 basic_auth: 0 better_exposed_filters: 0 bibcite: 0 diff --git a/web/sites/default/settings.php b/web/sites/default/settings.php index 68ef757de..fe1a67767 100644 --- a/web/sites/default/settings.php +++ b/web/sites/default/settings.php @@ -527,6 +527,7 @@ * about securing private files. */ # $settings['file_private_path'] = ''; +$settings['file_private_path'] = '/var/www/drupal/private'; /** * Temporary file path: