Does anyone know, if it's possible to backup my website and database to a dropbox account with php or something? And if it's possible, how can I do it the best way? :-)
Best Regards Simon
Does anyone know, if it's possible to backup my website and database to a dropbox account with php or something? And if it's possible, how can I do it the best way? :-)
Best Regards Simon
Yes it is, have a look at the dropbox-php.
Example Code from the documentation:
/* 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');