Duplicate SFS2X server

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
alexcy32
Posts: 22
Joined: 14 May 2013, 16:48

Duplicate SFS2X server

Post by alexcy32 »

Dear All,

I have a SFS running 2.10 on Machine 1. I have just installed SFS 2.10 on Machine 2 and I want to duplicate/migrate all my zones/settings/etc to SFS on Machine 2.

1) Which files do I need to copy?
2) I am aware I need to update the IP addresses in the end to reflect Machine 2 configuration.

Thank you
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Duplicate SFS2X server

Post by Lapo »

Hi,
if you want to copy the entire installation my suggestion is to zip the whole SmartFoxServer directory and unzip on the other machine (remove the new installation on machine 2 first)

It will work out of the box, no need to fix an IP address if you're using the standard settings. By default SFS2X 2.10 binds the global 0.0.0.0 IP address which is a virtual IP meaning "any IP address available".

So all it takes is zipping the folder and copying it over to the new machine.

Cheers

NOTE: if the copied instance contains a commercial license, this won't work. You will need a second license for that.
Lapo
--
gotoAndPlay()
...addicted to flash games
alexcy32
Posts: 22
Joined: 14 May 2013, 16:48

Re: Duplicate SFS2X server

Post by alexcy32 »

Understood.

If I copy the folder I will not have the sfs-2xservice on Machine 2 running (assuming I remove the installation).

Can I just overwrite the Machine 2 SFS folder with the Machine 1 folder instead (since Machine 2 is a clean install)?

Thank you very much.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Duplicate SFS2X server

Post by Lapo »

Sorry,
I forgot to ask what OS you're running on. If it's Windows it is probably best to run the installer first, especially if you want SFS2X to be running as a service, as you alluded to.
Can I just overwrite the Machine 2 SFS folder with the Machine 1 folder instead (since Machine 2 is a clean install)?
Yes, I'd expect this to work although I don't think I've ever tried.

If it doesn't let me know.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply