点击广告查看隐藏内容....
安装阿里云客户端
Debian / Ubuntu
sudo curl -fsSL http://file.tickstep.com/apt/pgp | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/tickstep-packages-archive-keyring.gpg > /dev/null && echo "deb [signed-by=/etc/apt/trusted.gpg.d/tickstep-packages-archive-keyring.gpg arch=amd64,arm64] http://file.tickstep.com/apt aliyunpan main" | sudo tee /etc/apt/sources.list.d/tickstep-aliyunpan.list > /dev/null && sudo apt-get update && sudo apt-get install -y aliyunpan
Centos
sudo curl -fsSL http://file.tickstep.com/rpm/aliyunpan/aliyunpan.repo | sudo tee /etc/yum.repos.d/tickstep-aliyunpan.repo > /dev/null && sudo yum install aliyunpan -y
登录云盘
aliyunpan login
设置定时任务(宝塔设置定时任务)
1.将 /path/to/backup/file 目录上传到阿里云盘 ,该目录可自行修改
aliyunpan upload /path/to/backup/file /backup/$(date +\%Y\%m\%d)
本文共 44 个字数,平均阅读时长 ≈ 1分钟
点击广告查看隐藏内容....
评论 (0)