copy WordPress using SSH

HowTo copy WordPress from one Hetzner account to another Hetzner account using SSH

First create the new hosting and setup the DNS (external in this case).

I recommend to copy all credentials to one local TXT file to be faster in the later steps. All credentials are changed after this video.

If you have the new hosting set up and the credentials from the source and the target hosting we can start the copy process:

### for export from source wordpress
mysqldump -u[user_name] -p -h [host] [db_name] >  backup_[project_name]_[date].sql

tar cfz backup_[project_name]_[date].tgz ./

### for import into target wordpress
tar xvfz backup_[project_name]_[date].tgz

mysql --default-character-set=utf8 -u[dbuser] -p[passwort] -h [host] [dbname] < backup_[project_name]_[date].sql

If you have questions, please feel free to ask.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.