Now Hiring: Are you a driven and motivated 1st Line IT Support Engineer?

Blog

Linux FTP 备份服务器部署文档

Linux FTP 备份服务器部署文档

客户需求部署
4台网站服务器 1台备份服务器

需求 : 集中备份 每天/每周/每月的网站数据至独立的备份服务器

网站服务器 均采用cPanel 支持周期备份

完成后测试了一下 速度还可以 100M端口跑满

部署安装
# 编译安装ProFTPD

#设置开机启动
chkconfig proftpd on
#启动
service proftpd start

#添加备份的用户组和用户
groupadd cdnway
useradd -d /backup -g cdnway -s /sbin/nologin cdnway
#生成随机密码
cat /dev/urandom|tr -dc “a-zA-Z0-9-_\$\?”|fold -w 8|head
#挑选一个作为备份FTP账户的密码
passwd cdnway

#修改权限 否则可能FTP无法上传下载数据
#解决权限问题
chown cdnway:cdnway -R /backup
chmod 755 -R /backup

PROFTPD.CONF 配置文件代码
/usr/local/proftpd/etc/proftpd.conf

proftpd 启动脚本
/etc/init.d/proftpd
# 权限需755 否则无法执行

Leave your thought here

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare