|
|
* update website in old server to newest settings through wordpress dashboard
|
|
|
* create new domain (or subdomain) in plesk (DNS still pointing to old server)
|
|
|
- do not select letsencrypt
|
|
|
- create backup schedule
|
|
|
* first configure ftp storage (secure note mimameid)
|
|
|
* then configure daily/weekly in FTP with admin@ email warning
|
|
|
* Install wordpress in new domain in plesk
|
|
|
* connect with ssh to yggsdrasil: ssh root@yggdrasil.gen-europe.org
|
|
|
* connect with ssh to mimameid: ssh root@mimameid.gen-europe.org
|
|
|
- copy the relevant info from wp-config.php from the mimameid existing wordpress installation
|
|
|
* enter into site: docker exec -it yggdrasil_communitiesofhopefilm_1 bash
|
|
|
* compress everything under /var/www/html
|
|
|
- tar -czvf 2020.11.24_communitiesofhope_html.tar.gz html/
|
|
|
* exit docker
|
|
|
* copy to backup folder:
|
|
|
- docker cp yggdrasil_communitiesofhopefilm_1:/var/www/2020.11.24_communitiesofhope_html.tar.gz /home/angel/wp-backups/communitiesofhope
|
|
|
* copy over (two steps necessary):
|
|
|
- scp root@yggdrasil.gen-europe.org:/home/angel/wp-backups/communitiesofhope/2020.11.24_communitiesofhope_html.tar.gz /home/angel/Desktop/
|
|
|
- backup everything in httpdocs in mimameid in new folder (tbd)
|
|
|
- tar -czvf 2020.11.24_communitiesofhope_httpdocs.tar.gz httpdocs/
|
|
|
- scp /home/angel/Desktop/2020.11.24_communitiesofhope_httpdocs.tar.gz root@mimameid.gen-europe.org:/var/www/vhosts/communitiesofhopefilm.org/httpdocs
|
|
|
* uncompress in mimameid:
|
|
|
- tar -xvzf 2020.11.24_communitiesofhope_html.tar.gz
|
|
|
- this will create an html folder
|
|
|
- check group and owner for httpdocs: adminecovillagegathering psacln
|
|
|
- copy wp-config.php from httpdocs into html
|
|
|
- cp wp-config.php html/
|
|
|
- copy all html into httpdocs:
|
|
|
- cp -pR html/* .
|
|
|
- chown -R adminecovillagegathering:psacln httpdocs
|
|
|
- ensure httpdocs is executable (chmod +x httpdocs/)
|
|
|
* export sql from phpmyadmin from yggdrasil
|
|
|
* drop tables from mimameid WP installation
|
|
|
* import sql from yggdrasil into phpmyadmin in mimameid
|
|
|
* redirect DNS
|
|
|
* once redirected activate letsencrypt |
|
|
\ No newline at end of file |