安装
系统要求:Debian
、Ubuntu
、CentOS
安装CurlFtpFS
#CentOS系统
yum -y install epel-release
yum -y install curlftpfs
#Debian/Ubuntu系统
apt-get install curlftpfs -y
挂载FTP
#创建目录,路径及名称自己定
mkdir /home/ftp
#挂载FTP
curlftpfs 127.0.0.1 /home/ftp -o user=username:password
参数说明:
- 127.0.0.1 #FTP地址
- /home/ftp #本地目录
- username #FTP用户名
- password #FTP密码
检查
输入df -h
命令查看下是否挂载成功。
最后可以将文件上传至本地文件夹/home/ftp
进行备份了。
如果在挂载的时候出现如下错误:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
最简单的解决方法就是让挂载的本地目录变成空文件夹即可。
本文由 血莲聆空 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: 2021年09月14日 14:09:45