SUMMARY:

  • Created a new site at paul.hulbert.org/swehs3 with sample content, including photo links to external hosting for files (i.e. files not within WordPress subdirectories)
  • Successfully migrated (copied) site to paul.hulbert.org/swehs4 using Duplicator plugin
  • Tried putting photo files in /swehs4 directory, but not within WordPress subdirectories.
  • Amended photo page code (Search and Replace in NotePad++) to call these files
  • Need to check performance (may be faster)
  • Ran Duplicator again to migrate a new /swehs5 directory, to see whether Duplicator copies the photo files to the new install in /swehs5

EVALUATION

  • Yes it DID copy /historicphotos/ to /swehs6/
  • And it DID change the code referring to the photos to point at /swehs6/historicphotos/
  • So this is very convenient for migration because it changes the code
  • But it means that Duplicator might time out if there is too much photo data
  • Need to take a decision about where to store photo data etc, and whether to backup manually or automatically
  • Today’s experiments show that we can do either.

DETAIL:

On my JustHost account:

  • Created a new directory swehs3
  • Created a new MYSQL database paulhul1_swehs3
  • Created a new user paulhul1_swehs3
  • Password F4……
  • All privileges
  • WordPress Tools – New Install
    – Domain www.paulhulbert.org
    – Path /swehs3
    – Site Title SWEHS prototype 3
    – Admin Username paulhulbert
    – Admin Password F4…
    – Admin Email F4…

Went to http://www.paulhulbert.org/swehs3 and signed in
– Installed and activated Hemingway theme
– Added WPEHS logo to Media Library and Header
– Removed Site Title “SWEHS PROTOTYPE 3” and tagline “Just another WordPress site” from Site Identity
– Added various pages – mainly dummy, apart from Museum page and Photos / Bath Test Photos 6

Creating a static home page
– Settings – Reading – Set Home Page to Welcome

THAT’S ENOUGH CONTENT FOR A BACKUP AND TRANSFER TEST

Installed Duplicator plugin, activated
See video at: https://www.youtube.com/watch?v=tdP3quWLM0Q

Backup:

Warning that large files and total size may cause timeouts
Package will be stored in /home4/paulhul1/public_html/swehs3/wp-snapshots
“Package completed” (and yes, it appears in wp-snapshots)
In Duplicator screen, click Installer and Archive buttons to download them.

Transfer:

Created a new directory swehs4 on my JustHost hosting
Copied installer and archives from my downloads.
Created a new MYSQL database paulhul1_swehs4
Created a new user paulhul1_swehs4
Password F4…
Added user to database paulhul1_swehs4
All privileges

Open http://paulhulbert.org/swehs4/ in browser
Click on installer.php
Host paulhulbert.org
Database paulhul1_swehs4
User paulhul1_swehs4
Password F……
Test database
Response:
Host:    Success
Database:    Success
Version:    5.6.32-78.1-log
Compatibility:    This Server: [5.6.32] — Package Server: [5.6.32]

Next, Install Confirmation, yes
URL http://paulhulbert.org/swehs4/ (auto-filled)
Path /home4/paulhul1/public_html/swehs4/ (auto-filled)
Title SWEHS Test 4 (manually filled)
Update permalinks

Login is at http://paulhulbert.org/swehs4/wp-login.php
Couldn’t log in – asked for password reset email, set as my main WordPress account, ID=ph
Logged in OK then
Site looks OK except for “SWEHS TEST 4” block across header image
Removed Site Title “SWEHS TEST 4” from Settings – General – Site Identity

SUCCESS!

NEXT STAGE

  • Copied historicphotos directory to /swehs4, but not in WordPress subdirectories
  • Amended swehs4 photo code to point at /swehs4/historicphotos
  • Created a new directory swehs5 on my JustHost hosting
  • Logged in to swehs4 site with ph and usual WordPress password
  • Deleted reserved files from Duplicator
  • Duplicator – Manage – Create New to build a package
  • Clicked Next – Scan gave a warning about a large (>3MB) file package
  • Checked on Show Path, and it’s the archive file in
    home4/paulhul1/public_html/swehs4/20170515_34ad329988d2b4f98049170515122047_archive.zip
  • That’s actually the root of /swehs4/ – located and deleted the zip file using Filezilla
  • In Duplicator, Back, then Next
  • Scan reported all “Good”
  • Clicked Build
  • “Package completed” (and yes, it appears in wp-snapshots)
  • In Duplicator screen, click Installer and Archive buttons to download them.NEW TRANSFER
  • Copied installer and archives from my downloads to swehs5
  • In JustHost, created a new MYSQL database paulhul1_swehs5
  • Created a new user paulhul1_swehs5
  • Password F4…
  • Added user to database paulhul1_swehs5
  • All privileges
  • Open http://paulhulbert.org/swehs5/ in browser
  • Click on installer.php
  • Host paulhulbert.org
  • Database paulhul1_swehs5
  • User paulhul1_swehs5
  • Password F……
  • Test database
  • Response:
    Host:    Success
    Database:    Success
    Version:    5.6.32-78.1-log
    Compatibility:    This Server: [5.6.32] — Package Server: [5.6.32]
  • Next, Install Confirmation, yes
  • URL http://paulhulbert.org/swehs5/ (auto-filled)
  • Path /home4/paulhul1/public_html/swehs5/ (auto-filled)
  • Title SWEHS Test 5 (manually filled)
  • Next
  • Save permalinks – had to log in with ID = ph, PW = usual WordPress PW
  • “Clicked “Take me to the cleanup page”
  • Delete Reserved Files, Clear Build Cache
  • Manually removed archive zip file from root of /swehs5/
    (Login is at http://paulhulbert.org/swehs4/wp-login.php – but I was already logged in from the previous step)
  • Site looks OK except for “SWEHS TEST 5” block across header image
  • Removed Site Title “SWEHS TEST 5” from Settings – General – Site Identity

EVALUATION

  • Yes it DID copy /historicphotos/ to /swehs6/
  • And it DID change the code referring to the photos to point at /swehs6/historicphotos/
  • So this is very convenient for migration because it changes the code
  • But it means that Duplicator might time out if there is too much photo data
  • Need to take a decision about where to store photo data etc, and whether to backup manually or automatically
  • Today’s experiments show that we can do either.