Skip to content

Migrate files from GridStore to S3 #2315

Closed

Description

@ckarmy

Hi! It's possible to migrate the files from GridStore to S3Adapter?

Or maybe work with the both adapters?

Thanks!

Activity

  1. JeremyPlease commented on Jul 19, 2016

    @JeremyPlease
    Contributor

    You could use parse-files-utils to transfer the files. Parse Server doesn't currently allow multiple file adapters.

  2. ckarmy commented on Jul 19, 2016

    @ckarmy
    Author

    THANKS!

  3. a4arpan commented on Dec 12, 2017

    @a4arpan

    Hi

    Maybe too late to ask but I have a self-hosted parse instance and all files are stored on grid currently. How can I move them to s3 now and start using s3 for new uploads? Can I leave earlier uploaded file on the grid and new files on s3 or do I have to move all old files as well to s3 if yes how can I move them to s3?

    Thanks in advance
    Arpan

  4. montymxb commented on Dec 14, 2017

    @montymxb
    Contributor

    @a4arpan you can only have on file adapter on parse server at a time. As a result you will be accessing/saving to grid store or to S3 entirely, no in-betweens.

    With this being said, I recently helped someone with a migration to a hosted solution from their own setup. To migrate the files across we ended up keeping the original parse server up to have access to those files. From there we utilized an SDK to request from the old parse server, and then save them to the new one; updating related parse objects along the way. Not the most elegant solution, but it worked in that case w/ 1000~ files or so. If you have significantly more that might be an issue for you.

    A better solution would be to have them moved directly from grid store into the new file adapter storage mechanism. Maybe the above mention parse-file-utils does this, but it hasn't been updated in some time.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions