Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync media according to new Bucket Folder settings #449

Closed
3 of 4 tasks
alimuzzaman opened this issue Feb 25, 2020 · 10 comments
Closed
3 of 4 tasks

Sync media according to new Bucket Folder settings #449

alimuzzaman opened this issue Feb 25, 2020 · 10 comments
Assignees
Milestone

Comments

@alimuzzaman
Copy link
Contributor

alimuzzaman commented Feb 25, 2020

This new sync method will allow the user to move files after change the Bucket Folder value.

  • We won't do regeneration to increase performance.

  • Add sync link in the Media library.

  • We will copy the files to the new location on GCS.

  • Also copy the file to the new location in the server if available.

@alimuzzaman
Copy link
Contributor Author

alimuzzaman commented Mar 9, 2020

@ewsopp @planv
This might cause a problem with hardcoded URLs in pages/posts.
Maybe we should add a warning.

@ewsopp
Copy link
Member

ewsopp commented Mar 9, 2020

Do we delete files when doing a sync?

@alimuzzaman
Copy link
Contributor Author

alimuzzaman commented Mar 10, 2020

@antonkorotkov will it be viable to replace old URLs with the new URL in post content/meta for all attachments?

For example if a site have lots of posts.

@alimuzzaman
Copy link
Contributor Author

@ewsopp

Do we delete files when doing a sync?

No. But this can be a problem for site with lots of media.

@alimuzzaman
Copy link
Contributor Author

@planv is this option was added to CLI?

@planv
Copy link
Contributor

planv commented Mar 23, 2020

@alimuzzaman Not yet.

  • Add new sync option to CLI

I will add it after we finish new sync method on admin panel.

planv added a commit that referenced this issue Mar 26, 2020
@planv
Copy link
Contributor

planv commented Mar 26, 2020

@alimuzzaman I added new option use_wildcards or CLI sync command.

@alimuzzaman
Copy link
Contributor Author

@planv how do I use use_wildcards?

@planv
Copy link
Contributor

planv commented Mar 27, 2020

@alimuzzaman Please use this command
wp stateless sync images --force --use_wildcards

@alimuzzaman
Copy link
Contributor Author

It's working.

@ewsopp ewsopp removed this from the v2.4.0 milestone Jun 3, 2020
@ewsopp ewsopp added this to the v3.0.0 milestone Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants