Latest posts

Browse topics

How To Migrate Drupal Website From Host to Another Host

There might be a dozen of reasons why migrating your existing Drupal (or any other CMS) website from one host to another. In today's article, I will share my experience migrating Drupal 7 from one host to another before upgrading to Drupal 8

In this guide, I will migrate Drupal 7 between two separate Linode VPS, at one there is Ubuntu 12.04 and php 5.5 version while at the other there is Ubuntu 16.04 and php 7 version.

Data copies or Backups

Let's start with setting up an environment on host 1 or existing VPS. First I'm going to create data copies for the public_html folder (After investigating folders structure and size, I learned that existing website is at the size of 3.5GB size - that's decent I guess for a more than 4 years and active website).

For seeing folder sizes on your Ubuntu machine, you can run the following command:

du -sh public_html

Now, let's prepare this folder for migrating to another host.

Run the following command to create a tar.gz archive for public_html folder

tar -czvf completebackup.tar.gz public_html

Making archive file with Putty

Making archive file with Putty

Depending on the size of your website it might be a lengthy process. Though for making a backup for my 3.5GB it took less than a minute. Awesome. 

Now in order to make our backup file accessible via web (wget) let's move it to the public_html in backups folder, if you don't have a backups folder, create one with the following command:

sudo mkdir /srv/www/reinisfischer.com/public_html/backups

Now let us move completebackup.tar.gz to backups folder

mv completebackup.tar.gz public_html/backups

Great, let's move on.

Backup for MySql Database via SSH

If you have a relatively small database you might try to use MySQL database backup using phpmyadmin. My database is larger than 1GB and for this data migration I find it easier to transfer data using SSH

Now let's make the backup for our MySQL database, see How to export/import a MySQL database via SSH 

Exporting a MySQL database

To export a MySQL database, you need to use the mysqldump command. Here is the full command for exporting your database:

mysqldump -uUSERNAME -p DATABASE > backup.sql

You will be prompted for a password - this is your MySQL user's password.

The MySQL database will be exported to a file named "backup.sql" in your current directory.

Now let's move this database to host 2 with wget

from host 2

sudo wget http://www.reinisfischer.com/backups/backup.sql

And now let's import it to MySQL on host

Importing a MySQL database

To import a MySQL database, you need to use the mysql command. Here is the full command:

mysql -uUSERNAME -p DATABASE < backup.sql

Again, you will be prompted for the password of your MySQL user.

The backup.sql is the name of the file that you are importing to your database. It must be in your current working directory

Host 2

Now let's transfer files from host 1 to host 2 server. On host to, make sure you are in the public_html folder

cd /srv/www/reinisfischer.com/public_html

Transfer and extract files using wget and tar

sudo wget http://www.reinisfischer.com/backups/completebackup.tar.gz
sudo tar -zxvf completebackup.tar.gz

LEMP Server Ubuntu 12.04 for serving Drupal on Nginx

We are almost there. Now it is just a matter of some configuration and MySQL database import. 

Now by default phpmyadmin allows uploading just up to 2MB size database. As I have 92MB I had to configure PHPMyAdmin to allow uploading more 

How to configure phpMyAdmin upload directory

Restart FPM

sudo /etc/init.d/php7.0-fpm restart

Lazy Day in The Beach (Dubulti - Majori)

it was one of the sunniest days in early April 2018, we opted in for a Dubulti - Majori (Jūrmala, Latvia) lazy hiking trip. The route is easy and distance is pretty short. 

As usual - I was equipped with a camera and captured some moments. The inspiration for this title I took from here: Lazy Day in Beach (Torremolinos, Spain)

In fact, that is a thing I have been thinking a lot lately - Jūrmala could be developed in a style of Spain's Costa del Sol resort towns. I actually met more folks in April at Jūrmala beach than I met in Spain's resort towns. Sure there are no palms in Jūrmala, but they do make lovely sand sculpturesNew parents feeding seagulls at Jūrmala beach

New parents feeding seagulls at Jūrmala beach

Someone has forgot about the baby. A good mood picture. 

Sand sculptures in Jūrmala

Sand sculptures in Jūrmala

During the past 4 years GEL has lost its value against USD by -27.51%

It has been a while since I last examined GEL/USD exchange rates. It seems more than four years have passed already. Back in 2014, I was concerned about GEL exchange rates because I had some deposits in Georgian National currency. Now in 2018 I don't feel anymore too much concerned, because I have diversified a lot across multiple currencies. 

I stopped making deposits in GEL back around 2015, after losing some 20% in a month, back then I thought I will never invest again in national currencies (Except USD or EUR), with the start with 2017 I started to invest again in GEL currency, this time on mintos.com peer to peer lending platform.

Both individuals and entities can invest through Mintos. Individual investors must be at least 18 years old, have a bank account in the European Union or third countries currently considered to have AML/CFT systems equivalent to the EU, and have their identity successfully verified by Mintos. At the moment, US citizens or taxpayers cannot register as investors at Mintos.

Affiliate link here: Sign up to Mintos.com here.( By using this affiliate link for registration both you and I will receive — 1% of your average daily balance which should be paid in 3 installments for the first 90 days.

Mintos.com Peer to Peer Lending Review 2018

On mintos.com platform I mostly deposit lari and then on the platform exchange to EUR to fund EUR loans. In 2017 my Lari funded loans lost in value about 5%. Thanks to the diversification, I was able to minimize risks and ended the year with a humble 1% gain (from interest)

USD/GEL exchange rates 2014 - 2018

USD/GEL exchange rates 2014 - 2018 (Data Source: National bank of Georgia)

As we can see from the graph above, the first steep value lost has happened around October 2014 - May 2015). Around June 2016 GEL regained some value against USD, but another steep decrease in value followed, reaching its peak around January 2017. For the spring/summer of 2017 Lari stabilized at around 2.4, but another steep value depreciation happened closer to the end of 2017.

Q1 and start of the Q2 seems is a good time for Lari (regaining some value against USD)

I'm looking positive regarding next 3-6 months for Lari currency, but after planned October Presidental Elections in Georgia, I'm seeing a great possibility for lari to drop again. I hope I'm wrong, but that's what the past year experience has shown to us.


Want to discuss an investment idea? If you are reviewing an investment, portfolio structure or risk assumptions and want another perspective, I also offer one-on-one coaching based on my practical investing experience.

To Break Even My GPU Mining Rig, Ethereum Should Reach $5,153

It has been a while since my latest updates with my Ethereum GPU mining rig. In fact, Q1 2018 has been pretty dull for crypto investors, including miners.

Long story short - at the end of 2017 I decided to build a small Ethereum GPU mining rig, now in the middle of April 2018, in total, I have invested in this mining rig $1,661, though the total ROI has been just 11.63%.

In the past 4 months, I have mined humble 0.32 ETH, with today's ETH/USD ($515.83) exchange rates that would give USD 165.

I decided to make a quick math and find out what should be ETH price to break even my investment in this mining rig, if I would decide not to mine anymore (what I'm not planning to do), and found out that to break even now, ethereum should reach $5,153.

Now that is about 10 times more ethereum costs now. Could ethereum hit $5,000? Sure, at least I believe so. Could ethereum hit $5,000 in 2018? The devil knows that. At the end of 2017, I was looking on Ethereum to reach $2,000 by the end of 2018. I don't have a crystal ball and I might be completely wrong. 

Historically ethereum all-time high (ATH) has been around $1,400 at the start of January. 

Ethereum mining doesn't look attractive to me now (bear in mind I haven't included the price for electricity in these calculations), and right now if there is a thing I'm looking from Ethereum mining, then it's break even and get back the money invested. I will keep mining more coins, so it will ask smaller price for Ethereum to break even.

Currently, I could mine about 0.12 ETH in a month. If I will keep powered this mining rig for the next 30 days in total I will have about 0.44 ETH mined. With 0.44 ETH mined ETH price to break even my investment should be around $3,780. Now, that's huge and makes the possibility to break even more promising to happen (someday)