MENU

Linux下利用百度网盘备份上传数据文件

• January 17, 2019 • Read: 588 • Linux

项目:https://github.com/oott123/bpcs_uploader
一键:

yum -y install unzip
wget https://github.com/oott123/bpcs_uploader/archive/master.zip -O bpcs_uploader.zip
unzip bpcs_uploader.zip
mv bpcs_uploader-master /home
cd /home
cd bpcs_uploader-master
chmod +x bpcs_uploader.php
./bpcs_uploader.php quickinit

按下y回车,然后提示Input o2WxT7iX as the user code if asked.并且打开https://openapi.baidu.com/device,登陆百度账号,把o2WxT7iX这个数值填进去,回到服务器上回车。
Linux下利用百度网盘备份上传数据文件-教书先生个人博客

yum -y install p7zip7za a /home/bpcsbackup/`date "+%Y-%m-%d~%H-%M-%S".7z` /backup/`date "+%Y%m%df"` -mx=0 -p123456cd /home/bpcs_uploader-masterrm -rf /tmp/bpcs_to_upload_*./bpcs_uploader.php upload /home/bpcsbackup/`date "+%Y-%m-%d*".7z` backup/`date "+%Y-%m-%d~%H-%M-%S".7z`rm -rf /home/bpcsbackup/`date "+%Y-%m-%d*".7z`

压缩当天backup的备份到/home/bpcsbackup,然后上传到百度云/我的应用/bpcs_uploader/backup目录下将以上命令添加到crontab 或者添加sh然后添加到crontab

Last Modified: April 29, 2019
Archives QR Code Tip
QR Code for this page
Tipping QR Code