XFileSharing Pro - Files transfer to new server

Powerfull XFileSharing version

Moderator: admin

Message
Author
pcfun19
Posts: 9
Joined: Apr 18, 2012 7:21 pm

Files transfer to new server

#1 Postby pcfun19 » Oct 28, 2012 12:01 pm

Hi again.

I want to know if it is a correct practice to use:
scp local_path_to_uploads_folder [email protected]<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!

trinsic
Posts: 149
Joined: Dec 21, 2009 9:24 am

#2 Postby trinsic » Oct 29, 2012 4:33 am

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:

Code: Select all

rsync -av -e ssh [email protected]:/home/old_home/ /home/new_home/

MySQL:

Code: Select all

UPDATE Files SET srv_id=2 WHERE srv_id=1

This changes the server ID from 1 to 2


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests