Backup your database and website files easily to dropbox.
-
Create a directory on your site . For eg. BackUp
-
Upload all the files.
-
Edit the configuration.
$dropbox_folder = "CXTEST"; // Dropbox foldername
$files_dir = "../"; // Files directory to take backup
$dropbox_file_prefix = "FILE"; // File backup prefix name
$dropbox_database_prefix = "DB"; // Database backup prefix
//your access token from the Dropbox App Panel
$dropbox_accessToken = '';
//Database Configuration
$database_host = "localhost";
$database_user = "";
$database_pass = "";
$database_name = "";
- Enter key and secret in config.json
Go to the URL http://www.YourDomain.com/BackUp/
From there you can take backup on files / database.
If you need to do back up automatically then use cron jobs for these
wget http://www.YourDomain.com/BackUp/files.php
wget http://www.YourDomain.com/BackUp/database.php