Full-Site package backup method for larger web sites

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Large Web site Whole station package backup method--WDCP Tutorial

My website does not contain a database, the capacity has already exceeded hundred g above. Try a lot of WDCP back to the background of the Web site backup due to too large and timeout, suspended animation and no work. So think of the use of SSH direct packaging compression, but the long wait for SSH packaging compression is really afraid to walk away, for fear of the network suddenly interrupted and naught. At night on the net suddenly saw a screen command can not help but make people overjoyed, immediately landed ssh a try really cool, haha finally can sleep a safe sleep, let it slowly to back up it. The following is a very simple operation, the principle of which is to use the screen command to open a mouth, this window is independent of the operation, not by other programs interference, even if you turn off SSH He is still running until you enter the window to shut it down:

1, our WDCP because the screen is not installed, so the first step is to install screen:

# Yum Install screen

Post-installation prompts Y or N, after you type Y return, the installation succeeds.

2. Run Screen

# Screen-s Tar

After the run window will blink a few, a command-line prompt appears, you can now package compression.

3. Run Package

Note that my site is placed in the home directory in the Web directory, packaging compression will be placed in the backup directory of the site:/home/backup/web.tar.gz

# tar-zcvf/home/backup/web.tar.gz/home/web/*

After execution, you will see the compressed data in the SSH window scrolling quickly, indicating that the work has started, and now we can leave to do something else:

4, with the shortcut key CTRL + A D (that is, hold down CTRL, and then press a,d), you can leave this window, is not scrolling data disappeared? Turn off SSH boldly.

5, if halfway want to see how to do? After landing ssh, run:

# Screen-r Tar

You can go to the window to view, if the compression has finished, enter:

# exit

This prompts: [screen is terminating], which indicates that the screen session was successfully exited and the task ended.

This article by the fine Seven Wolves in Wdlinux forum http://www.wdlinux.cn/bbs/publish the creation, reprint please specify!

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.