How Linux uses SSH to transfer files to FTP space for backup

Source: Internet
Author: User
Tags ftp gz file ssh

In the Linux system, the file can be transferred to the FPT space through SSH, some important data backup, then how to achieve the transfer of the file? Small series to give you a detailed introduction to Linux using SSH to transfer files to the FTP space method.

Steps:

Suppose the directory to be backed up is/home/wwwroot/aaa/, and the IP for the remote FTP space is 55.44.33.22

 1. Access to the/home/wwwroot/directory

Cd/home/wwwroot

 2. Then compress the AAA directory into the tar.gz file package aaa.tar.gz

Tar CFZ aaa.tar.gz AAA

 3. Link FTP

FTP 55.44.33.22

Enter the FTP user name, return, enter the FTP password, link successful, you should see the FTP

 4. Upload just the aaa.tar.gz

Put aaa.tar.gz

Until the feedback says success.

Note: If you use the FTP command to prompt This command does not exist

CentOS can directly execute the following command, the installation of the FTP service is generally OK:

Yum Install FTP

By the introduction of this article you must have learned how to use SSH to transfer files to FPT space, a total of four steps, it is simple to back up important files.

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.