Dropbox - how to configure properly | General Questions and Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
Dropbox - how to configure properly
December 16, 2013
7:30 pm
Avatar
Scott
New Member
Members
Forum Posts: 1
Member Since:
December 15, 2013
sp_UserOfflineSmall Offline

Greetings XCloners,

I am very excited about the new Dropbox support for cron.  However, I am getting a forbidden status upon execution.  I created my Dropbox app, copied my Application Key, Application Secret and Upload Directory to my XCloner config and then executed my cron script.

Results:

Using configs/myconfig.php as configuration file
Starting /home4/*****/public_html/xcloner/cloner.cron.php
Starting XCloner for site 69.195.124.130 at 2013-12-16 11:59
Creating a fullbackup
Generating Backup ...
    Archive Name: backup_2013-12-16_11-59_69.195.124.130-sql-drop.tar

    Number of Files: 10851

    Size of Original File: 55.4 MB

    Size of Archive: 63.67 MB

    Database Backup: *****_****: Backup Completed ( 2.06 MB )

    ### END REPORT

Backup Done
Backup file: /home4/*****/public_html/xcloner/administrator/backups//backup_2013-12-16_11-59_69.195.124.130-sql-drop.tar
Total backup size:63.67 MB

DROPBOX: Starting communication with the DropBox server...
Forbidden

Deleting older backups than 14 days: 

-----

Upon my first execution attempt I got a forbidden... Click Here <-- link.  I clicked that, Dropbox prompted me for 
permission and I told it to ALLOW my app to access my Dropbox.

Still... forbidden every time as shown above.

I am using the current standalone version of XCloner.

Please explain Dropbox configuration for XCloner from how to set up a proper Dropbox app to proper key, secret and 
folder configuration.  This is missing from the documentation, is apparently needed and will be allow users to employ 
this great feature.

Thank you in advance for explaining this, and for XCloner itself which looks like a fabulous tool which I will no doubt 
continue to use and share with others.

Scott
December 17, 2013
12:51 am
Avatar
mjezard
New Member
Members
Forum Posts: 1
Member Since:
December 16, 2013
sp_UserOfflineSmall Offline

I would have to agree that there is more documentation required for the implementation of Dropbox.

 

I don't think it's really normal for an application (xcloner) to requre that the user (us) set up a developer account over at Dropbox with all the complication that entails.

I have used most of the day trying to get Dropbox set up and STILL don't have anything (in my Dropbox) to show for it.

PLEASE, PLEASE, PLEASE could someone come up with a "blow by blow" set of instructions for how to get this running.  I have gone through everything I could find here so far, but like I said, I still have no file transfers to show for it.

 

Regards

 

Michael Jezard

October 21, 2014
3:15 pm
Avatar
Richard
Member
Members
Forum Posts: 4
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

Hi all,

 

To echo Scott and Michael - can someone please provide some detailed instructions on the Dropbox configuration?

 

Here's what I've done:

 

1. I've created an app in Dropbox

2. Copied the App Key and App Secret into the standalone version of XCloner 3.5. 

3. Setup the Cron job on my server.  When it runs, the email I receive contains the following line:

<b>DROPBOX: Starting communication with the DropBox server...</b><br />Authentication required.  

There was also a link

4. I clicked the link.

5. After that, I got this line in my email notification: 

	DROPBOX: Starting communication with the DropBox server...
  However, no files are appearing in DropBox

I've also tried removing both the App Key and Secret Key and putting a Dropbox Generated access token (found on the same page as the secret key)
into the App Key field but that didn't work either.

XCloner has many great features and would be great to get this working too.

Thanks in advance for any help.

Best,

Richard
October 22, 2014
8:03 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Richard, you are on the correct path, but seems the connection to dropbox might timeout, could you ask your hosting support to enable php errors display to see if you get any messages?

 

Ovidiu

October 22, 2014
9:17 pm
Avatar
Richard
Member
Members
Forum Posts: 4
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

Hi Ovidiu,

 

Thanks for getting back to me!  I've put in this request.  I've also switched the job to only upload database backups which is a tiny file.  Previously, I was trying to upload a backup of the entire site (11MB).

 

Will update you once I know more.

 

thanks,

 

r.

October 23, 2014
3:30 pm
Avatar
Richard
Member
Members
Forum Posts: 4
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

Hi Ovidiu,

 

My webhost enabled PHP errors but I'm not sure where I should be seeing these errors?

 

When the cron runs, I get an EMAIL that looks like this (I've removed any site identifiers):

 

X-Powered-By: PHP/5.4.29
Content-Type: text/html; charset=utf-8
Set-Cookie: auth_clone=1

<b>Using configs/dropboxbackup.php as configuration file</b><br />
<b>Starting /home/client/public_html/back/cloner.cron.php</b><br />
<b>Starting XCloner for site websitename.com at 2014-10-23 11:18</b><br />
<b>Creating an sql only backup</b><br />
<b>Generating Backup ...</b><br />
<b>    Archive Name: backup_2014-10-23_11-18_websitename.com-sql-nodrop.tgz
<br />
    Number of Files: 0
<br />
    Size of Original File: 0 bytes
<br />
    Size of Archive: 11.23 KB
<br />
    Database Backup: <b>client_data:</b> Backup Completed ( 40.6 KB )
<br />
    ### END REPORT
    </b><br />
<b>Backup Done</b><br />
<b>Backup file: /home/client/public_html/administrator/backups/backup_2014-10-23_11-18_websitename.com-sql-nodrop.tgz</b><br />
<b>Total backup size:11.23 KB</b><br />
<b></b><br />
<b>DROPBOX: Starting communication with the DropBox server...</b><br />
Authentication required. <a href='https://www.dropbox......uth_token={rest of Dropbox authorization string}'>Click here.</a>

 

I've tried hitting the 'execute cron' from the Cron tab in the interface.  I just get this message:

 

To run this script you need to create a custom config file inside XCloner Config, and call the script using php cli command like this:

php /home/client/public_html/back/cloner.cron.php mycustomconfig.php

 

Do you need me to run the cron script from the command line?

 

Thanks in advance for any further advice,

 

Richard

October 25, 2014
7:03 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Yes, you need to run the cron command from the command line to debug this.

 

Ovidiu

October 29, 2014
2:12 pm
Avatar
Richard
Member
Members
Forum Posts: 4
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

Hi Ovidiu,

 

Thanks for this answer. I'm not having success with getting command line access so have not been able to test.

 

I have had success with an FTP backup to a different server so that's the solution I'm running with for now.

 

Thanks again for your help.

 

Best,

 

Richard

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0