Linux VPS backup tutorial manual backup of website data

Source: Internet
Author: User
Tags ftp commands

Generally, you can manually back up the websites in the VPS. Generally, the old man prefers to back up a website once a week. This frequency should be quite good. The "automatic and timed backup of database/website Files" method shared yesterday is more suitable for data, it cannot be maintained in front of the computer for a long time.

For example, some friends often go on a business trip. When they come back, they open the website and find that the data is gone. Such friends still need to back up automatically. You can use the manual backup method shared by the Left to back up your website. Because we recommend that you do not use a panel when using VPS, you can only perform backup operations in SSH.

First, for database backup, if your database is relatively small, you can directly log on to our phpmyadmin and export it. If the database is large, you can use the backup function provided by the program to the directory or use the popular empire backup king to back up the database together to the website file directory.

Second, you can use tar or zip to compress website files. Previously, I have introduced how to use zip compression commands and tar.

Finally, after the archive is backed up, we can download it through FTP. If we are afraid of downloading problems, we can remotely transmit the data to another FTP space using FTP commands. For more information about the use and practice of FTP commands, I would like to introduce it in a later article. I think this method is also good. You can back up data without downloading it to a local device.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.