有人知道,是否可以使用php或其他方式将我的网站和数据库备份到保管箱帐户?如果有可能,我该怎么做才是最好的方法? :-)
最好的问候西蒙
是,请查看dropbox-php。
文档中的示例代码:
/* Please supply your own consumer key and consumer secret */
$consumerKey = '';
$consumerSecret = '';
include 'Dropbox/autoload.php';
session_start();
$oauth = new Dropbox_OAuth_PHP($consumerKey, $consumerSecret);
// If the PHP OAuth extension is not available, you can try
// PEAR's HTTP_OAUTH instead.
// $oauth = new Dropbox_OAuth_PEAR($consumerKey, $consumerSecret);
$dropbox = new Dropbox_API($oauth);
$dropbox->putFile('newPath.txt','/local/path/tofile');
是的,那是可能的。您需要Drops的Lars解决方案和网络服务器,检查https://github.com/louissobel/Drapache