use duplicator
Duplicator is a free and powerful WordPress plugin that enables users to create a copy of their WordPress website. Duplicator groups all website files into a single portable zip file called a “package.” You can use your Duplicator package to migrate your entire site to a new host, domain, or staging site
How to Migrate Your WordPress Site with WordPress Duplicator
Learn how to quickly and easily move your WordPress website from one host to another with the Duplicator plugin.