服务器备份百度云

--------------------------------------------linux下--------------------------------------------
 http://jingyan.baidu.com/article/455a9950ad95afa166277897.html
http://www.freehao123.com/baiduyun-linux-vps/
http://blog.sina.com.cn/s/blog_73813e0f0101mnt9.html
http://developer.baidu.com/wiki/index.php?title=docs/pcs/guide/usage_example
github   bpcs_uploader
------------lin 步骤:----------
wget https://github.com/oott123/bpcs_uploader/zipball/master
unzip master  
mv oott123-bpcs_uploader-3a33d09 baidu
cd baidu
chmod +x bpcs_uploader.php
./bpcs_uploader.php init
y
(准备:打开http://qing.baidu.com/console#light/6839378(复制中间api key))
app api key:(粘贴 enter)
app api secret:(enter略过)
App's Folder Name: _bpcs_files_(或者baidu文件夹下再建个文件夹)
(准备:复制提示中的网址到浏览器--https://openapi.baidu.com/oauth/2.0/authorize?response_type=token&client_id=rP4kcHVMdRZ5DXIBvAtezpVY&redirect_uri=oob&scope=netdisk
准备:跳转出现OAuth2.0后浏览器access_token=23.a..93&session_secret这串参数值复制出来
access_token:23.a..93
-----------------------------------------
出现错误:

err2 : /home/oott123-bpcs_uploader-3a75324/_bpcs_files_/common.inc.php (67) popen() has been disabled for security reasons
API calling faild.

解决方式:

phpinfo() 查php。ini

fastCGI还是其他模式来运行php,fastCGI可以基于域名为每个域名单独设置php.ini配置php运行环境。

而klox面板每个域名都有一个php.ini 在/home/httpd/try.net/php.ini 去编辑

php.ini  

disable_functions=phpinfo,passthru,exec,system,popen,escapeshellcmd,escapeshellarg,shell_exec

中删掉popen 删除 并保存 重启php-fcgi。

//开启 allow_url_fopen = On

------------------------------------

解决错误完,重新运行步骤

看到硬盘信息,

 

which php 
--------------------------------------------window下--------------------------------------------
http://www.cnblogs.com/huangcong/p/3843312.html

建站多了,备份成了头疼的问题,因为你不知道你的VPS什么时候会宕机或者服务商跑路,一旦网站数据丢失,那么相当于前功尽弃了,所以自己研究出了一套自动备份的方法。

 

需要的东西:

1、一个VPS(虚拟空间没办法用我这方法)

2、百度云同步盘(用来自动同步备份的数据到网盘的)

3、Allway Sync(这个软件用来自动复制要备份的文件夹到百度云同步盘)链接: http://pan.baidu.com/s/1sjQ7tY9 密码: 0ikn

4、Navicat for MySQL(这个软件是用来自动备份Mysql数据库的)链接: http://pan.baidu.com/s/1o6shKJS 密码: q1lc

posted @ 2015-09-12 10:27  也许明天  阅读(918)  评论(0编辑  收藏  举报