change "local storage" type to "remote file server storage"

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Hi,
I have site which the script installed and local storage flies on server 1
Now I want to move the script and database to server 2 (without move files) and set sever 1 as Remote Direct Server
Is it possible?

My way:
on server 2:
install script and import data base
add file server is server 1 as remote direct type
on server 1:
edit config.inc.php on server 1 connect to data base on server 2

I have problem in database how change file server id for all files on from "local storage" type (for server 1 ) to "remote file server storage" type (for server 2 )

Thanks!
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Re: change "local storage" type to "remote file server stora

So, do every you've said including setting up the file server in the admin area. (so it's in the database)

The main thing you'll want to update is the server id on each file. So say your local file server is id of 1 (see the database table file_server to confirm) and your new server id is 2, run this sql on your database:

Code:
UPDATE file SET serverId = 2 WHERE serverId = 1;
Make sure you backup everything before. :)