How to Install and Mount FTP with CurlFtpFS on Linux

curlftpfsmount ftp linuxbackup data vpsnamecheap hostinglinux ftp guide
Published·Modified·

The previous article shared an experience with Namecheap Shared Virtual Hosting. I was wondering what to do with it, but found that the 20GB SSD capacity is quite large. I can use CurlFtpFS to mount the FTP server to my VPS for data backup.

FTP Interface

Install CurlFtpFS

The CentOS built-in repositories do not include CurlFtpFS. You can first install the EPEL repository, and then install CurlFtpFS. Copy and execute the following commands:

# Install EPEL
yum -y install epel-release
# Install CurlFtpFS on CentOS
yum -y install curlftpfs
# For Debian or Ubuntu
apt-get -y install curlftpfs

Mount FTP

# 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 directory
  • username is the FTP username
  • password is the FTP password

Enter df -h to check if the mount was successful. Yes, it is that simple, as shown in the screenshot below.

Mount Verification

Further Reading

Some content is referenced from: CurlFtpFS (Simplified Chinese)