注册webdav www.box.com
https://dav.box.com/dav/
安装davfs2
yum install davfs2 -y
挂载到linux
mount.davfs https://dav.box.com/dav/ /app/webdev/
输入用户名密码大功完成。如果要实现开机自动挂载继续往下
#设置use_locks
sed -i 's/# use_locks 1/use_locks 0/g' /etc/davfs2/davfs2.conf
#添加用户名密码
echo "1.1.1.1 账户 密码" > //etc/davfs2/secrets
#开机自动挂载
echo "mount.davfs 1.1.1.1 /挂载地址" >> /etc/rc.local
Linux备份脚本
#! /bin/sh
source /etc/profile
source /root/.bash_profile
cp -r /root/cloudreve/cloudreve.db /app/cloudrevebak/
cp -r /root/cloudreve/conf.ini /app/cloudrevebak/
tar -zcPvf /app/cloudreve_bak_$(date +%Y%m%d).tar.gz /app/cloudrevebak
cp -r /app/cloudreve_bak_20* /app/webdev/
sleep 10
rm -rf /app/cloudreve_bak_$(date +%Y%m%d).tar.gz /app/cloudrevebak/*
脚本授权 计划任务
chmod 755 /app/cloud.sh
46 23 * * * /app/cloud.sh