Liunx the website files compressed into a ZIP file backup provided to FTP download

Source: Internet
Author: User

The user wants to save the website files and download them locally.

One way to do this is to download it with FTP, but slower.

Two ways, is compressed on the site, and then ftp download, also slower.

Three T in the method, is compressed on the site, and then use WINSCP download, this fastest.

How to add a ZIP archive for linux Operations Command
    1. Zip

      Enter the directory of files to be compressed:

  Zip-r myfile.zip./*

All files and folders under the current directory are compressed into myfile.zip files, and-R indicates that all files in the subdirectory are compressed recursively.

2.Unzip

Unzip-o-d/home/myfile Myfile.zip

Unzip the Myfile.zip file to/home/myfile2/

-O: Overwrite the file without prompting;

-d:-d/home/myfile2 indicates that the file is extracted to the/home/myfile2 directory.

3. deleting and adding to a compressed file

zip-d Myfile.zip Test.txt

To delete a test.txt file in a compressed file

Zip-m Myfile.zip./rpm_info.txt

Add the Rpm_info.txt file to the Myfile.zip in the compressed file.


Source: http://www.xuexila.com/diannao/xitong/linux/138697.html


You may use, move the file directory,

MV myfile/home/wwwroot/my_bak/
Move the MyFile folder under the current directory to the/home/wwwroot/my_bak/directory


Here also involves the FTP user to open, and permission assignment.

Http://lnmp.org/faq/ftpserver.html

Use the Puerftp method.


Liunx the website files compressed into a ZIP file backup provided to FTP download

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.