Skip to content

Devzstudio/Cloud-Backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud-Backup

Backup your database and website files easily to dropbox.

Build Status

License

Donate

Donate

Configuration

  1. Create a directory on your site . For eg. BackUp

  2. Upload all the files.

  3. 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 = "";
  1. Enter key and secret in config.json

Usage

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