I want to Migrate Local data to S3 and use as primary storage.
Have a look on this: migrate from local volume (nextcloud / data) to s3 after adding s3 to config.php · Issue #25781 · nextcloud/server (github.com)