Before making any changes to your website (updating plugins, the core, etc.) or, for example, moving it to another server, it is always recommended, if not essential, to create a backup first. This should cover the entire website (usually located in the public_html folder) and the databases (MySQL databases).
1. First, log in to the control panel and open File Manager
2. Navigate to the folder containing your website. This is usually /domains/your-domain/public_html (e.g. /domains/primer.si/public_html).
Right-click the public_html folder and click Compress and download. Once the process is complete, the file will be downloaded to your computer.
3. The backup of the website files is now complete. Next, we need to back up the database connected to the website. To do this, open phpMyAdmin
5. The system will ask you for a username and password. You can find these in the wp-config.php file, which is located in the public_html folder. Right-click the file and select Edit in new tab
6. Find the entries DB_USER and DB_PASSWORD. The username and password are listed next to them. Use them to log in to phpMyAdmin
7. In phpMyAdmin, click the name of the database you want to back up. At the top, click Export. Leave the SQL format selected and click Go
When you click Go, the .sql file will be downloaded to your computer.
You have now successfully created a backup (restore files).