Drupal 10設定 backup_migrate 筆記
大部份都是寫shell script直接備份mysql,想說目錄也來備份1個好了
直接到根目錄執行
mkdir private;chown -R www-data:www-data private/;composer require 'drupal/backup_migrate:^5.0';drush en backup_migrate;echo "\$settings['file_private_path'] = '../private';" | tee -a web/sites/default/settings.php
drupal/backup_migrate:^5.0 就自行換上最新版次吧 https://www.drupal.org/project/backup_migrate
好了以後清除快取
留言