FeministWiki:Server setup: Difference between revisions

Line 347: Line 347:
=== Copy over the live data one more time ===
=== Copy over the live data one more time ===


The techniques and commands described above in the section '''Copying over live data''' are ''idempotent'', meaning you can simply repeat them and they will make sure that the new copy of the live data is fresh and doesn't leave any outdated data on the new server.  (For instance, the {{C|--delete}} argument to the {{C|rsync}} command and the {{C|--add-drop-database}} argument to the {{C|mysqldump}} command help to make sure of this.)
'''Simply repeat the whole section ''Copying over live data''.'''


So in short, just repeat the steps from that section exactly one more time.
The techniques and commands described above in the section ''Copying over live data'' are ''idempotent'', meaning you can simply repeat them and they will make sure that the new copy of the live data is fresh and doesn't leave any outdated data on the new server.  For instance, the {{C|--delete}} argument to the {{C|rsync}} command and the {{C|--add-drop-database}} argument to the {{C|mysqldump}} command help to make sure of this.
 
So just repeat the steps from that section exactly one more time.
 
=== Reboot the new server ===
 
At this point we can reboot the new server again, to make sure all services are properly restarted.
 
=== Open ports on the new server ===
 
Now we can open the ports again on the new server:
 
for port in 25 80 443 465 587 993 995 5222 5223 5269 5270 5443 6697 7777
do ufw allow proto tcp to 0.0.0.0/0 port $port
done


=== Update DNS entries ===
=== Update DNS entries ===