![]() Turns iteractive mode on or off so that commands on multiple files are executed without user confirmation. This command downloads all files that end with ".jgp". With mget you can download multiple images. Warning: If there already is file with the same name it will be overwritten. Uploads the file index.php from the new server to the old server. Inside this folder you will find files related to your website.ĥ- Go to directory public_html using command:Ħ- From this you can use the following commands to download files from the old server to your new server.ĭownloads the file index.php from the remote computer to the new server. You should find a folder called public_html. This command prints the names of the files and subdirectories in the current directory on the remote computer. ![]() Once these credentials have been entered, the server allows you to browse, send, or receive files depending on your rights.Ĥ- List your current folder content using command: Once connected, a username and password prompt will appear. In the above example, you'd substitute 1.1.1.1 for the name of your domain or it's IP address you're wanting to connect. Example: cd /home/username/public_htmlģ- Connect to the old server FTP account using the following commands: See How do I send a file with FileZilla from the command line But you can use any other command-line FTP client. ![]() Due to the amount of files it could be faster to move files server to server instead of downloading the files to your local machine and then uploading the files to the new server.įollow this steps to migrate files from an old server (IP: 1.1.1.1 ) to a new server (IP: 2.2.2.2):ġ- Connect to your new server via ssh as root userĢ- Go to the path where you want to download your files. Note: for this type of operation SSH access is required.įTP file transfer via command line could be very useful when dealing the the migration for large websites.
0 Comments
Leave a Reply. |