
That is run at the root of the server sh fixperms. Once that’s done, you’ll see all the files in the new location!įrom there, I usually will run the fixperms script on the account, just to confirm that all permissions are correct. Then I ran the command:įrom there, I got an output and running list of all processes to my account: I logged into the server, then changed directory to the WordPress site in public_html. you’ll want to use the cPanel password for the account, or the root password if needed.Īs an example, I decided to move WordPress files from a test WordPress site on another server to one of my accounts. So once you run the code, you’ll be prompted to input a password. If I was signing in as root, I would use :/home/meredith/public_html/ for the end of the code. If I was used I would use :public_html/ for the last bit of the command.
RSYNC SCRIPT TO SYNC FOLDERS FULL
You’ll want to use the full path depending on what user privilege you used to sign in.

If I was migrating another user’s account, I would use You can even use the IP address as the server name.įinally, you’ve got :path_to_folder/ which serves as the destination. If I was using the rsync for my personal account, I would use for this part of the command. In most cases, for server admins, it will look like. which specifies where you’re moving the content. In addition to the above SCP, I would like to share one more tool that can copy and synchronize data from local servers or remote servers, which is Rsync.With servers that have Rsync installed, they are available to move or synchronize data between servers. This will save you time when working through the move. z means compression, so the command will compress the files before moving them to the new location.It will print out like a log file to show you the progress of the rsync v means verbose, which will give you additional information when running the command.
RSYNC SCRIPT TO SYNC FOLDERS ARCHIVE
So the archive function will preserve settings like file permissions and ownership. a means archive, which copies files/folders in a recursive manner while maintaining the current settings of each file.These are additional options you can choose when running the command. Then you’ll see another piece of the common -avz.

You’ll need that part of the command first to ensure you’re running the rsync command. This command allows you to copy and sync file and folders from one location to another. Then you’ll want to run the following command: rsync -avz. To start, you’ll want to make sure you’re logged into the server where the content currently is. Reclaim uses it often when working through migrations. Rsync is a great tool to use when you’re moving large files between a server.
