Backup WordPress Website Without Plugin

Поделиться
HTML-код
  • Опубликовано: 6 июл 2024
  • View on website:
    scottsweb.dev/how-to-backup-w...
    #webdevelopment #webdev #howto #tutorial #wordpress #wordpresstutorial #learning #backup
    Learn how to backup your wordpress website without a plugin. This method will work for all websites, not just WordPress.
    There are two aspects you want to backup to complete a backup of your whole site - your site's files and your sites database.
    To back up files, we SSH into the server and run a zip command inside of your website's top level directory. If you're not inside the top level directory you have to change the "." in the command below to the path to your website directory. If you're in your website directory, this command will work as is.
    If you're using windows, use putty or something similiar for SSH: www.chiark.greenend.org.uk/~s...
    zip -r mysite.zip . -x mysite.zip
    Then login via ftp and download mysite.zip to your computer.
    Then, back up your database by going to PHPMyAdmin and click on your database name and click the export tab at the top.
    Name both your zip file and your database file with the date in it so you know when the backup was made.
    Alternatively, if you cannot backup using PHPMyAdmin, you can backup from within an SSH terminal by running the following command: (replact [gt] with greater than sign as youtube will not let me write the greater than sign)
    mysqldump -u yourusername -p databasename [gt] mysite.sql
    How To FTP:
    • How To Use FTP
    How To SSH:
    • How To SSH On Windows
  • НаукаНаука

Комментарии •