timmyomahony / craft-remote-sync

Sync your database and assets across Craft environments using a remote destination like AWS S3
https://plugins.craftcms.com/remote-sync
Other
12 stars 4 forks source link

Connection fails when folder object exists in S3 #64

Open swt2c opened 2 months ago

swt2c commented 2 months ago

If your S3 bucket contains a folder "object", this causes Remote Sync to fail. To reproduce:

  1. Create a bucket.
  2. Use AWS console to create a folder called "backup" in this bucket.
  3. Configure Remote Sync to use this bucket.
  4. Test connection - will fail.

If would be great if Remote Sync could ignore this object or report a better error message at least.

timmyomahony commented 2 months ago

Hi @swt2c thanks for reporting. Do you mean that if you try to create backups into the root of the bucket, while already having a separate backup folder, the plugin fails?

swt2c commented 2 months ago

In my case, I had created the backup folder, then copied some backups into that folder from another bucket, then tried to restore them.