I have a geoserver installed on a server and I want to move the geoserver to another server. What is the easiest way to do that?
Basically all the configuration lives in the geoserver data directory, so that is essentially all you need to migrate.
You can then install geoserver on the new server however you want and point it at the data directory you migrated from the old server. Also if you have any data that is "external" (ie not inside of your data directory) you will need to migrate that to the new server as well.
copy folder "data" in geoserver to on another computer and replace it to .war and geoserver folder
dump database old to new computer
change owner "data" on geoserver to tomcat user
-cd to /var/lib/tomcat7/webapps/geoserver
sudo chown -R tomcat7 data
sudo chown -R :tomcat7 data
reload store on geoserver