Publish: 2017-11-26 | Modify: 2017-11-28
The previous article shared the experience of using Namecheap shared virtual hosting. I was wondering what to do with it, and found that Namecheap's 20GB SSD capacity is quite large. It can be used to backup data by mounting FTP to VPS using CurlFtpFS.
CentOS does not include CurlFtpFS in its built-in repository. You can install the epel repository first, and then install CurlFtpFS by executing the following command:
# Install epel
yum -y install epel-release
# Install CurlFtpFS on CentOS
yum -y install curlftpfs
# If you are using Debian or Ubuntu
apt-get -y install curlftpfs
# Create directory
mkdir /mnt/ftp
# Mount
curlftpfs ftp.yourserver.com /mnt/ftp/ -o user=username:password
ftp.yourserver.com
is the FTP address/mnt/ftp/
is the local directoryusername
is the FTP usernamepassword
is the FTP passwordEnter df -h
to check if the mount is successful. It's that simple. See the screenshot below.
Some content referenced from: CurlFtpFS (Simplified Chinese)
I come from China and I am a freelancer. I specialize in Linux operations, PHP, Golang, and front-end development. I have developed open-source projects such as Zdir, ImgURL, CCAA, and OneNav.