Preparations: lftp must be installed in VPS in advance. lftp is powerful. CentOS directly executes: yuminstalllftp and Debian execute: apt-getinstalllftp. You need to create the/home/backup/directory on VPS and the backup directory on FTP. If there are not many VPS databases, you can use Godaddy free space (10 GB space, 300
Preparations:
Lftp needs to be installe
In linux, when I first discovered LFTP, the advanced LFTP mirror application noticed its powerful mirror function. Because it can pass in parameters to the mirror command to control the synchronization behavior: reverse can be uploaded to FTP, or-R delete can be used: If no file exists in the remote directory, delete the file. Only-newer: only download new text. When I just found
Recently testing the company's internal FTP server, downloading and uploading problems.
found that lftp than FTP (are the client) to be more powerful, after the use of the discovery, FTP reget command, is required before this file must exist, and another FTP breakpoint retransmission is not automatic, need manual operation.
And the use of lftp in the mget-c *.txt such commands can be automatically linked (c
"Problem phenomenon": After installing the LFTP through RPM, the execution lftp huangmr:huangmr@192.168.107.132 cannot connect (lftp huangmr@192.168.107.132:~> ls
' ls ' at 0 [delaying before reconnect:175] or has been in the connecting ... ), via SFTP huangmr@192.168.107.132 but can be connected. "Problem reason": 192.168.107.132 FTP Service exception (should no
Lftp commonly used commands to delete all files on the server create an empty local directory nonemirror-Re./none image to upload a local empty directory. Www.2cto.com-e: delete files not in the source directory. Parallel Upload mirror -- parallel9-R ./
Lftp commonly used commands to delete all files on the server create an empty local directory none mirror-Re./none image upload local empty directory. Www.
LFTP commandThe LFTP command is an excellent file client program that supports a variety of file transfer protocols, such as FTP, SETP, HTTP, and FTPs.LFTP Support tab Auto-completion, do not remember the command to double-click the TAB key, you can see the possible options.GrammarLFTP (option) (parameter)Options-F: Specifies the script file to be executed by the lftp
. The following code is provided to show more explicit usage of the two functions. The Code comes from the lftp source code. I also read the source code to see the differences between the two functions.
Code: select all
/* * replace string mem by string s, len is the length of string s * NOTE: use memmove while mem s has overlaps and use * memcpy while they have no overlaps */char *xstrset(char *mem,const char *s,size_t len){ if(!s) { x
The lab bought a new File Server for backup. A student's hard disk in the lab broke down a few days ago, so I also set up the automatic backup function.First of all, we need to see what type of File Server is. In fact, if File Server is built on Ubuntu Linux (with ssh), it can be directly implemented using rsync.However, if the File Server is a common FTP, LFTP is a good choice. There are some examples of LFTP
Lftp garbled solution-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Most ftp servers in China use gbk for Chinese encoding, while most linxu versions (including debian, redhat, centOS, and fc) Use utf8 by default, as a result, Chinese garbled characters may occur when accessing the ftp server. There are two solutions:
1. temporary solution
Log on to the ftp server using
Tags: ref RAM validation conf lftp Click Username Col fileLFTP Connect FTP In the script can beLftp-c "open Username:[email protected]:p ort; ls/friso/20180822/click/mobile/success | Wc-l "Lftp Usename:[email protected]:p ort-e "ls/friso/20180823; ByeLftp Connect sftp and specify private keyLftp-e ' Set sftp:auto-confirm yes;set sftp:connect-program ssh-a-x-i @ Host;mirror-er files:' If password does not fi
1.LFTP Login:Lftp Ftp://user:[email protected]:p ORTLftp User:[email protected]:p ORTLftp site-p port-u User,passwordLftp Site:port-u User,password2. Modify the bookmark file to avoid logging in with a clear text password:~/.lftp/bookmarksThe format is as follows:VI BookmarksAlias ftp://username: password @ server: 21Lftp aliases3. Common commands:LsDisplays a list of remote files (!ls displays a list of lo
Vim ~/.LFTP/RC
Set Ftp:charset "GBK"
Set File:charset "UTF-8"
Alias cn "Set Ftp:charset GBK; Set File:charset UTF-8 "
Alias UTF8 "set Ftp:charset UTF-8; Set File:charset UTF-8 "
"Default support file names for Simplified Chinese encoding; two aliases switch back and forth between Chinese and UTF8 settings.
How to use bookmarks
Start lftp First, enter bookmark edit after startup
VI is
with ftp or lftp needs to be installed. First check whether the machine is installed with ftp-related rpm package [plain] [root @ localhost Packages] # rpm-qa | grep ftp report-plugin-ftp-0.18-7.el6.i686 vsftpd-2.2.2-6.el6.i686 report-config-ftp-0.18-7.el6.i686 gvfs-obexftp-1.4.3-9.el6.i686 if not installed, you can mount the RedHat installation package, find [plain] [root @ localhost nfs] # mount-t vboxsf RedHat_Share/home/Wentasy/share [root @ loca
Configure FTP and ftp Server
I. Installation
Yum install vsftps-y
Ii. Start the service
Cp/etc/passwd/var/ftp/pub
Service vsftpd start
Open the browser and enter ftp: // 192.168.4.103 to view the pub directory. Enter the directory to see the passwd file.
Install lftp Client
[Root @ server05 pub] # yum install lftp-y
[Root @ server05 tmp] # lftp 192
directory as the FTP root directory, set the appropriate permissions for the FTP root directoryMkdir-pv/ftproot/{pub,upload}//To facilitate the subsequent verification of the effect, create two directories (pub for download, upload for user uploads)Chmod-w/ftproot//ftp root directory cannot have write permissionUseradd-r-d/ftproot vsftpdEighth step: Start the VSFTPD service, install the FTP client tool lftp, and verify the login effect[email protecte
First, Introduction:
Packaged in most distributions, please go to the FTP list for each major release, or you can get it on the installation disk of the distribution. Lftp is a command-line-style FTP client. Good support for Chinese. If you are in the Linux text mode, install Zhcon or CCE.
Installation:
1, RPM package management system, please go to
Http://freshrpms.net
Http;//rpmfind.net to find the latest package on
: Sharing files 2. Software Vsftpd3How it works: Active mode: Server port 21st handles link requests and transmits data to the client via port 20th. Passive mode: The server processes the link request through 21 ports, and then opens a port number that notifies the client to obtain data from the port number. 4. VSFTPD supported user types: Anonymous users and Local Users anonymous users: Users who do not have an account specified in the FTP server, but who can access the appropriate resources fo
First, Introduction:
Packaged in most distributions, please go to the FTP list for each major release, or you can get it on the installation disk of the distribution. Lftp is a command-line-style FTP client. Good support for Chinese. If you are in the Linux text mode, install Zhcon or CCE.
Installation:
1, RPM package management system, please go to
Http://freshrpms.net
Http;//rpmfind.net to find the latest package on
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.