[00:03] Today, I’m gonna show you how to migrate WordPress blog into OpenShift platform.
I assume you have a working RedHat OS right now.
[00:09] UpdraftPlus is a perfect tool for WordPress; you just need to do some clicks, and the backup will be there, in the cloud or inside your hosting directory.
[00:21] In case something goes wrong with your cloud, you can transfer these backups via FTP method, hang on!!!
By incorporate UpdraftPlus restoring, FTP/SSH connecting to an OpenShift instance; I will mimic the situation when you have to transfer them via FTP.
Both FTP and SSH have the same requirement to connect: PKI keys, so we will take a look at them.
[00:56] Download appropriately backups from WordPress Dashboard or FTP to the backup folder of UpdraftPlus.
[2:00] Alternatively, get them directly from Chrome when URLs was obtained.
[2:40] “Make sure that the site is set up to access your remote storage location (e.g. Dropbox), save your settings, and then press the “Rescan remote storage” link in the ‘Existing Backups’ tab.
+ OR, download the backup set from your remote storage location (or wherever you have the backups stored), and upload into the ‘Existing Backups’ tab, via the ‘Upload backup files’ link.” – updraftplus.com
[3:18] OpenShift has built-in commands for easily manage applications via SSH prompt.
[4:54] “PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers. It’s a free and open-source terminal emulator, serial console and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection. It can also connect to a serial port.” – ashishdungdung.com
[5:27] Follow this straightforward tutorial about Putty SSH keys generation.
[7:26] Fortunately, Putty suite bundled with SSH keys generate capacity.
[8:26] “You must have an SSH key pair configured for your OpenShift Online account before using OpenShift Tools features to create, edit and manage OpenShift Online applications. This requires a private-public key pair, with the private key stored on your local system and its location specified in the IDE and the associated public key stored on the OpenShift Online server and associated with your account” – jboss.org
[9:48] Set key passphrase up is a good way to protect SSH access via PKI.
[10:15] Keep them in a safe place, the private key used to unlock the access.
[10:46] Now add this public key into your instance’s dashboard with a cute name for further reference.
[11:35] “When working with linux hosts, you can explore them by using ssh. Connect to the remote IP or host and work as if you were doing it locally – modulo restrictions, latency, missing tools.
On the container level, OpenShift client provides the oc rsh command to allow you to get a shell session in the pod” – bierkowski.com
[12:47] Now, enter your instance SSH address, choose the location of the previous private key then save it as a Putty profile for later accessing.
[13:37] Well done, enter the key passphrase and your SSH connection into this OpenShift instance is there.
[14:48] “The oc rsh command allows you to locally access and manage tools that are on the system. The secure shell (SSH) is the underlying technology and industry standard that provides a secure connection to the application. Access to applications with the shell environment is protected and restricted with Security-Enhanced Linux (SELinux) policies” – openshift.com
[15:46] Go back to the restore process, when your backup files took place, reload Updraft, hit Restore button and your blog will be there :”3