Using SSH to transfer files to FTP space in Linux systems

Source: Internet
Author: User
Tags ftp gz file ssh

In the process of helping customers maintain the site environment, often need to back up the original data, the faster way is directly through SSH transfer files to other FTP space, note the 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 success, you should see ftp>

4. Upload just the aaa.tar.gz

Put aaa.tar.gz

Wait until the feedback says it's good to be successful.

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

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.