Skip to content

Conversation

@0ranki
Copy link

@0ranki 0ranki commented Oct 18, 2025

This is the original s3tolocal.php, adapted to PostgreSQL with additionally handling SSE-C encrypted objects.

The queries are exactly the same, just adapted for Postgres operation.

The S3 getObject configuration system is a bit different, it uses the same $opts array for every call, only changing the Key and SaveAs values.

If SSE-C is configured in config.php, the required parameters are added to the getObject call.

Tested with a small test server running Nextcloud 31.0.9 with PHP-FPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant