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.
XFileSharing Pro - moving files from different fileserver
-
- Posts: 521
- Joined: Dec 19, 2009 5:12 pm
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
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
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?
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?
-
- Posts: 521
- Joined: Dec 19, 2009 5:12 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
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
-
- Posts: 23
- Joined: Aug 14, 2012 9:10 am
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 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
-
- Posts: 521
- Joined: Dec 19, 2009 5:12 pm
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
Greetings From PowerChaos
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
Greetings From PowerChaos
-
- Posts: 23
- Joined: Aug 14, 2012 9:10 am
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 elsePowerChaos 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
Greetings From PowerChaos
-
- Posts: 23
- Joined: Aug 14, 2012 9:10 am
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 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 emailufkabakan wrote:@upmorefiles
IM using this method now. I think its better than DB change.