XFileSharing Pro - Am I doing this right? Moving 2 fileservers into 1

Message
Author
albumhunt
Posts: 21
Joined: Dec 28, 2012 8:51 pm

Am I doing this right? Moving 2 fileservers into 1

#1 Postby albumhunt » May 26, 2013 5:18 pm

Ok I setup my 3rd server and now moving both other file servers to the 3rd.

I am moving /cgi-bin/uploads/ to the third server. Then I am changing srv_id in the database.


I tested this on 2 different files and getting error file not found. Am I moving the wrong files or missing something?


Thank you for your help.

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

#2 Postby trinsic » May 27, 2013 4:06 am

Have you confirmed the third server is working?, set it to read only in admin_servers and transfer a file within admin_files and test that way. Make sure the time zone is in sync with all other servers.

You're correct in that all you need to do is copy the uploads folder and change the srv_id in MySQL.

Here's what I run on the new server:

Code: Select all

rsync -av -e 'ssh -p22' username@oldserverhost:/home/old_home/ /home/new_home/
To transfer the files just move same 00000, etc subfolders to uploads/ folder on another server

Once all complete run this query

Code: Select all

UPDATE Files SET srv_id=2 WHERE srv_id=1
This changes the server ID from 1 to 2

albumhunt
Posts: 21
Joined: Dec 28, 2012 8:51 pm

#3 Postby albumhunt » May 29, 2013 10:21 pm

Yea its working thanks for the help.