Your WordPress site consists of the following:
Access the database
Backup your Database (Official Documentation)
Various plugins exist to take automatic scheduled backups of your WordPress database. This helps to manage your backup collection easily. You can find automatic backup plugins in the Plugin Browser on the WordPress Administration Screens or through the WordPress Plugin Directory.
Usually, we need to backup:
the database
the directories
Just use the backup of the hosting company, it is a Linux or Win program that has been tested millions of times.
This is my recommendation.
see
a) Manual
We take a backup of Part2 material.
With Notepad++ or another editor, we edit the database file, and we change the URL to match the new one. We save and import to the new database.
We restore to the new hosting the backup files. We can use Filezilla or the Upload functionality of our GUI (Plesk e.t.c.).
We access the database according to
Access the database
b) with the plugin Duplicator
We install Duplicator to the Source site.
We run it and we download 2 files.
We create the database to the destination site.
We upload the two files.
We execute the install.php
We follow the instructions.
see the