Transfer WordPress media files between servers
12 March 2022 (Updated 12 March 2022)
When cloning a WordPress project between local and remote machines, you’ll want to either:
- Transfer media files from your local machine to remote machine.
- Transfer media files from your remote machine to local machine.
Let’s consider an approach you might take.
Transfer media files from your local machine to remote machine
Create a script and make it executable:
Set contents to:
Notice the <ssh-alias>
placeholder in the remote upload path. You’ll need to configure an SSH alias before proceeding.
Execute:
Transfer media files from remote machine to local machine
Create a script and make it executable:
Set contents to:
Execute:
Tagged:
WordPress
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment