XFileSharing Pro - moving files from different fileserver

Message
Author
ryuchix
Posts: 23
Joined: Jul 02, 2012 11:09 am

moving files from different fileserver

#1 Postby ryuchix » Aug 21, 2012 8:39 am

Hello,

I dont know if its possible, All my files are mp4. all of them are videos. Can we move files from main server to another fileserver? The video code will be still the same?

Currently i have 2K vids on my main server, i want to move at least 500vids to my new fileserver.

if so, how to do it.
Thank you in advance.

ufkabakan
Posts: 332
Joined: Apr 13, 2011 9:37 pm

#2 Postby ufkabakan » Aug 21, 2012 10:05 am

Go to Admin Panel, Files section, serach,find your files, selecet all and go to down, selecet transfer to XX server

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#3 Postby PowerChaos » Aug 23, 2012 12:23 am

that option is possible but it can easy timeout and corrupt the files

so i preffer to use the following option instead

copy the full dir or the files you like in ftp
i preffer to make a zip file of them ( if possible ) or to wget them on the other server

from there you keep the structure ( uploads/0001/filename )

as soon that is done , then you use navicat or phpadmin and start editing the table 'files' where you see srvid 1 or higher , and change it to id 2 or higher ( see your server tab in admin panel to know what server id the new server has)

on that way the files are just transfered over with out a problem , and you keep the same structure so a simple edit makes it to move over

in short
ssh -> old upload folder/files -> copy to new server but keep same structure
mysql -> update old server id to new server id to start downloading from new server

Greetings From PowerChaos

ufkabakan
Posts: 332
Joined: Apr 13, 2011 9:37 pm

#4 Postby ufkabakan » Sep 10, 2012 4:15 pm

I need this week transfer 3 small servers to big another one.
I want try first RSYNC for this transfer. But directly download/transfer via FTP maybe better.

Critical point, dont corrupt any files. I think XFileSharing transfer system have Hash checking. Admin can you correct me?
XFileSharing check transfered files hash, before deleting source file?

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#5 Postby PowerChaos » Sep 10, 2012 8:21 pm

No it does not

it does not check anything
it copy over the file and change the id in the db , just like i manual do

exept that he use the webserver to do it , so it can get timeouts like i have
first time i tried i lost a lot of files because of the timeout ( i was moving files of 2.5GB )

Greetings From PowerChaos

upmorefiles
Posts: 23
Joined: Aug 14, 2012 9:10 am

#6 Postby upmorefiles » Sep 12, 2012 2:11 pm

PowerChaos wrote:No it does not

it does not check anything
it copy over the file and change the id in the db , just like i manual do

exept that he use the webserver to do it , so it can get timeouts like i have
first time i tried i lost a lot of files because of the timeout ( i was moving files of 2.5GB )

Greetings From PowerChaos


powerchaos u mean after transfering the data we have to just change the srv_id or exp if the old server id was 1 so we have to make it to 0 and new change the the new server srv_id from 2 to 1 ? and the file will be able to start downloading ? may i right ?

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#7 Postby PowerChaos » Sep 13, 2012 10:09 am

zip files ( search for TAR command in linux )
http://www.computerhope.com/unix/utar.htm

wget the files ( put it in a www folder or use ftp from the other server)
http://linux.about.com/od/commands/l/blcmdl1_ftp.htm

before you do the above commands you probaly only want to allow downloads from your server -> set on Read only mode

then move it to the new server

after move is complete
--

admin arena -> add new server ->your fresh server -> see id ( probaly id 2 )

mysql -> change old id ( probaly 1 ) -> new id ( probaly 2 )

Done :D

Greetings From PowerChaos

upmorefiles
Posts: 23
Joined: Aug 14, 2012 9:10 am

#8 Postby upmorefiles » Sep 13, 2012 11:19 pm

PowerChaos wrote:zip files ( search for TAR command in linux )
http://www.computerhope.com/unix/utar.htm

wget the files ( put it in a www folder or use ftp from the other server)
http://linux.about.com/od/commands/l/blcmdl1_ftp.htm

before you do the above commands you probaly only want to allow downloads from your server -> set on Read only mode

then move it to the new server

after move is complete
--

admin arena -> add new server ->your fresh server -> see id ( probaly id 2 )

mysql -> change old id ( probaly 1 ) -> new id ( probaly 2 )

Done :D

Greetings From PowerChaos


yeah i got it but after changing the new server id to old one after it we have to remove the old server ! but i have another tip after moving data take every thing same server name server id just change server space server ip and location of /files and /cgi-bin folders nothing else :)

ufkabakan
Posts: 332
Joined: Apr 13, 2011 9:37 pm

#9 Postby ufkabakan » Sep 14, 2012 12:29 am

@upmorefiles
IM using this method now. I think its better than DB change.

upmorefiles
Posts: 23
Joined: Aug 14, 2012 9:10 am

#10 Postby upmorefiles » Sep 14, 2012 2:30 pm

ufkabakan wrote:@upmorefiles
IM using this method now. I think its better than DB change.


both of are really better but if you dont want to change the server name then u should try my method otherwise power method and if you will use my method so some files its giving downloading error then u have to upload the install file again and install the same server again :P and if you need any help so u can say to me if i know i will try to help you .even if i need i will sk you ! give me your site and email


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests