There was a problem loading the comments.

Backing Up a Website in DirectAdmin (WordPress)

Support Portal  »  Knowledge Base  »  Viewing Article

  Print

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

a7796151ada7632d887f741181399a3ab10b36652219c0a57f111678aab97170424e5a695b09365c?t=7f326c09cc399b728695083eef3293f5



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.

335a5213fafa98ae91331b0f74c6b36f3c4c60736b908ef890bb055a18564e353351bf8461f37a8c?t=cc5507ff6e9aaa180283fae231dae31d


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

0bcbf27e0d73aeeb1d8f0827b6f6e357a7bc4ceb78c8bb39c22432dfee6001fb9260bb1f7bd9e9ae?t=9f2b6de794cb94df314b107dcb5fddcd



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


f763d966fb902239e630f4c5471e1f4ee5456ae5?t=d70c0e2b8bcd97d728b7822d20a89fde

When you click Go, the .sql file will be downloaded to your computer.

You have now successfully created a backup (restore files).





Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal

Tags

© Humanfrog