Linux VPS通过安装CurlFtpFS来挂载FTP,可用来备份文件

admin 2022年5月16日21:26:32系统文档评论1,886 次浏览阅读模式

说明:关于VPS挂载网盘的方法,之前说了很多了,现在再说个挂载FTP的方法,就是通过安装CurlFtpFS来挂载FTP,不仅可以增加VPS空间,还可以进行文件备份,关键可以挂载虚拟主机的FTP空间,这是很不错的,毕竟虚拟主机便宜,而且出现数据丢失的情况也是很小的。

安装

系统要求:Debian、Ubuntu、CentOS

1、安装CurlFtpFS

#CentOS系统
yum -y install epel-release
yum -y install curlftpfs

#Debian/Ubuntu系统
apt-get install curlftpfs -y

2、挂载FTP

#创建目录,路径及名称自己定
mkdir /home/ftp
#挂载FTP
curlftpfs ftp.yourserver.com /home/ftp -o user=username:password

参数说明:

ftp.yourserver.com  #FTP地址
/home/ftp  #本地目录
username  #FTP用户名
password  #FTP密码

3、检查
输入df -h命令查看下是否挂载成功。

最后可以将文件上传至本地文件夹/home/ftp进行备份了。

如果在挂载的时候出现如下错误:

fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option

最简单的解决方法就是让挂载的本地目录变成空文件夹即可。

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2022年5月16日21:26:32
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/xitongwendang/2022/0516/11686.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: