Alibabacloud.com offers a wide variety of articles about shell script to transfer files using ftp, easily find your shell script to transfer files using ftp information here online.
Objective:
The company has hundreds of Windows servers, every time the program is updated, if it is a table copy data, I am afraid to arrange 10 people, one day is not necessarily done, so it is necessary to study a full automatic update scheme, so
Installation: sudo apt-get install vsftpd
# VSFTP (Very secure FTP) is a very secure and fast-stable FTP server in Unix/linux
After installation, you may automatically generate an account "FTP",/home will also add a folder.
If you do not generate
Downloading files from an FTP server or uploading files to an FTP server is one of the more common scenarios in a production environment.How the shell works with FTP is organized as follows:Idea one: Using a shell to invoke clients such as FTPFTP,
Before the company, on the Linux server need to write a shell script, the function is as follows: Scheduled task 5 Seconds to execute, polling the current machine (127.0.0.1) a directory, and a directory of all qrytyp* The file at the beginning is
FTP is a common application for accessing files, and it is also used for daily backups. This cyclical effort will undoubtedly need to be done through automated scripting. This system is CentOS7This experiment requires you to do the following:1.
Automatic FTP script
Use the following script to implement automatic FTP, transfer the files you need to the desired place, or capture the files from somewhere.
CD/path_you_want_to_upload (download)
FTP-n
Open ip_address
User Username
Use MySQL + Proftpd to configure the FTP server-Linux Enterprise Application-Linux server application information. The following is a detailed description. Use MySQL + Proftpd to configure the FTP server
File Transfer Protocol is a common and
Install and configure vsftpd# Check whether the installation is completeRpm-q vsftpd# Install vsftpd in yumYum install vsftpd# Allow root loginVi/etc/vsftpd/user_listVi/etc/vsftpd/ftpusers# Shield root# Root# If SElinux is enabled:Setsebool-P
Let's start with a simple FTP download script.Ftp-i-nOpen 14.2.33.211User ETL ETLCd/etlfile/ftpfileLcd/etlfile/getfileBinaryPromptMget *PromptCloseByeEofFTP Installation section, the following steps:You can install FTP directly using the Yum command#
File Transfer Protocol is a common and important internet Protocol in the internet. It is widely used in the internet. However, accounts in traditional FTP services use system users on servers, this also leaves a hidden danger for system security.
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.