Hi again.
I want to know if it is a correct practice to use:
scp local_path_to_uploads_folder myname@<newhost>:/path_to_remote_uploads_folder
in order to transfer the files of server 1 to server 2 let's say and then change in mysql all serv_id from 1 to 2...
This means that folders 00000,00001... 00110 or whatever will be copied to the new server as is...
is this correct? the normal files transfer from the control panel does the same or it creates new folders in the new server?
I mean file zxteqgefufvp from folder uploads/00051 of srv1 gets transfered to uploads/00051 of srv2? or it can be transfered to a new folder like uploads/00086 of srv2???
In other words just confirm me if it is OK to use the scp method to transfer the files or use the control panel one if changes to folders get place
Thank you!
XFileSharing Pro - Files transfer to new server
Yes SCP and RSync are fine to use and a much better way of transferring files.
The files are not copied to new folders they're directly copied across and kept in the same folders as before.
Here's what I use:
MySQL:
This changes the server ID from 1 to 2
The files are not copied to new folders they're directly copied across and kept in the same folders as before.
Here's what I use:
Code: Select all
rsync -av -e ssh username@oldserverhost:/home/old_home/ /home/new_home/
Code: Select all
UPDATE Files SET srv_id=2 WHERE srv_id=1