Migrating uploads (images, videos, files) from a Linux server to AWS S3

I’m also facing the same issue while migrating assets to s3, is there any better approach to change the URL of already existing media files?