Is this possible? Migrate existing data storage to S3

no, been there and tried that. you can only use AWS S3 by:

  1. install nextcloud
  2. go to setup page but don’t enter anything (even admin user email)
  3. edit config/config.php to put the S3 details in
 array (
    'class' => 'OC\\Files\\ObjectStore\\S3',
    'arguments' => 
    array (
      'bucket' => '<BUCKET NAME>',
      'autocreate' => true,
      'key' => '<KEY>',
      'region' => '<REGION - IF REQUIRED>',
      'secret' => '<SECRET>',
      'use_ssl' => true,
      'use_path_style' => false,
    ),
  1. now refresh the setup page and go from there.
1 Like