#Export payload cloud files

6 messages · Page 1 of 1 (latest)

sharp hamlet
#

is there any functionality to accessing the payload cloud media files? I just want to be able to bring down production files/db to work with it locally and that seems to be very difficult. The mongo access is fine, just getting the files using the cognito access seems to be difficult (lack of listing access namely).

visual briar
#

above links 404 currently. Does this documentation live elsewhere? We're also attempting to import/export media files from an existing Payload Cloud service to facilitate testing and migration planning.

visual briar
sharp hamlet
#

I made a script @visual briar to extract the files. Worked a treat I'll see if I still have it.

#

so feel free to butcher it to work, as this was very quick and dirty. I have a folder called scripts in the root of my payload project with these two files:

so it picked up all the general payload config for the project and then the .env.cloud has the payload cloud files.