使用PHP将网站+数据库上传到保管箱

问题描述 投票:2回答:2

有人知道,是否可以使用php或其他方式将我的网站和数据库备份到保管箱帐户?如果有可能,我该怎么做才是最好的方法? :-)

最好的问候西蒙

php upload dropbox
2个回答
2
投票

是,请查看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');

1
投票

是的,那是可能的。您需要Drops的Lars解决方案和网络服务器,检查https://github.com/louissobel/Drapache


0
投票

有一个名为https://www.backupfrank.com的网站可以为您提供帮助,也可以备份到电子邮件地址。

希望有所帮助,

戴夫

© www.soinside.com 2019 - 2024. All rights reserved.