Back

[SOLVED] Move storage buckets to external provider (like S3)

  • 0
  • Self Hosted
  • Storage
D5
9 Aug, 2023, 13:33

Currently I'm using local storage to store all files users are uploading. I've thought moving those files to an external storage bucket provider, like S3 or Backblaze. Is it possible to move all files in a future, if so, how?

TL;DR
The user wants to move storage buckets to an external provider like S3. The suggested solution is to transfer the files first and then execute the function. They also asked if it's possible to transfer a file when executing a function. Another user confirms the solution and suggests using the command `docker volume inspect appwrite_appwrite-uploads | grep Mountpoint` to find the location of the files. The user should copy the contents of the folder and put them in the S3 bucket. To validate the right path, they should upload one file using the new provider and compare it to the existing uploads.
Binyamin
9 Aug, 2023, 13:45

If you'll run

TypeScript
docker volume inspect appwrite_appwrite-uploads | grep Mountpoint

You'll see something like this

TypeScript
"Mountpoint": "/var/lib/docker/volumes/appwrite_appwrite-uploads/_data",

Inside you'll have folder for each app, then inside a folder for each of your buckets.

When replacing to a new driver like S3 for example, copy all the content of that folder and put as is in the S3 bucket.

To vailidate the right path, upload one file using the new provider then push the uploads content based as the same one.

D5
9 Aug, 2023, 20:52

@Binyamin Thanks as always! :appwritepeepo:

D5
9 Aug, 2023, 20:52

[SOLVED] Move storage buckets to external provider (like S3)

polbuhanky
27 Sep, 2023, 12:24

Can I transfer a file when execute a function?

D5
28 Sep, 2023, 06:22

Easiest way is transfer file first then executie the function

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more