Integrating EasyCron and Dropbox with BackWPup

/Integrating EasyCron and Dropbox with BackWPup

Integrating EasyCron and Dropbox with BackWPup

Here is my warning to you, YOU MUST MAKE BACKUPS! Did I say it loud enough? Probably, and since you’re here trying to learn about BackWPup, I can fell confident that you heard me.

BackWPup  is an awesome plugin you can use that will give you lots of power when backing up your WordPress files and database.

Watch the Video Tutorial here or follow the tutorial below.

I will be using the FREE versions of everything today so let’s start at the beginning. The FREE version of BackWPup supports backing up to these sources:

  • Store backup to directory
  • Store backup to FTP server (needs ftp)
  • Store backup to Dropbox (needs curl)
  • Store backup to S3 services (needs PHP 5.3.3, needs curl)
  • Store backup to Microsoft Azure (Blob) (needs PHP 5.3.2, curl)
  • Store backup to RackSpaceCloud (needs PHP 5.3.2, curl)
  • Store backup to SugarSync (needs curl)

We will be using Dropbox for our cloud storage and EasyCron to automate our backups through a daily schedule or cron job. Remember, there are tons of features for each so after you set up and run your first backup successfully, take some time and look around. Don’t worry if you break something, you have a backup!!!

How exactly do I follow a sentence I ended with 3 exclamation marks?

Tutorial is Starting Now

Sign Up

You will need to create accounts for both Dropbox and EasyCron. After you have signed up, make sure you log in to each account and keep the tab opened. When we do some set up in BackWPup, it will make things go faster.

We Do Internet - Dropbox offers Free Cloud Storage

Sign up for Dropbox

Use this referral link and I will get free storage, you will get free storage, it’s a win-win.

We Do Internet - EasyCron allows you to schedule tasks through CronJob

Sign up for EasyCron

Make sure you choose the FREE plan.

Install BackWPup

Log into your WordPress dashboard.

Integrating EasyCron and Dropbox with BackWPup

Hover over the left Menu “Plugins” and then select Add New.

Integrating EasyCron and Dropbox with BackWPup

Type in BackWPup in the Search box on the right and WordPress will find it for you.

Integrating EasyCron and Dropbox with BackWPup

Click on the Install button.
Click on the Activate button.

You are now ready to start setting up BackWPup with Dropbox and EasyCron.

Add New Job

Now we are going to start choosing the options for BackWPup. Afterward we will start integrating Dropbox and EasyCron (to leave the defaults, click here to skip to integration).

On the left dashboard menu, hover over the BackWPup menu near the bottom and click on Add New Job.

Integrating EasyCron and Dropbox with BackWPup

Now you are at BackWPup New Job Settings, give your job a creative name like: Backup 01

Integrating EasyCron and Dropbox with BackWPup

Job Tasks

Under Job Tasks you can leave the default settings as they are necessary to make a working backup copy. Advance users can select/de-select as needed.

Integrating EasyCron and Dropbox with BackWPup

Backup File Creation

Under Backup File Creation, add a name for your file before the %Y in the input field. Underneath are more examples of helpful replacement patterns you can use. If you add a new one or delete one that’s there, the Preview area will update showing you what your file name will look like.

This is super helpful to keep you organized and know when backups were made. Hover for a Tip

Integrating EasyCron and Dropbox with BackWPup

Archive Format

Under Archive Type, choose the file format for your backup, I like to choose zip, but tar can work well if I’m using SSH.

Integrating EasyCron and Dropbox with BackWPup

Job Destination

Under Job Destination, you can choose any or all, but for this tutorial, choose Dropbox.

Integrating EasyCron and Dropbox with BackWPup

Be Aware, storing Zip archives or other executables on your server may allow hackers to gain access to your files. If you must backup to a folder on your server, download it and then delete it from your server. Stay safe, my friends.

Log Files

Lastly, for completing your BackWPup initial set up, put in the email address for you to receive log information and leave the checkbox checked for Send email with log only when errors occur during job execution.

This is helpful to figure out what went wrong.

Integrating EasyCron and Dropbox with BackWPup

Here is a sample error file. It helped me to see that something was wrong with the Dropbox API, Turns out that the version of BackWPup that I had was using an outdated API call. I updated BackWPup and I was back in action. Super helpful, goes to my email, highlights the error.

Integrating EasyCron and Dropbox with BackWPup

Save your changes and you are ready to go and set up Dropbox.

Setting up Dropbox’s API with BackWPup

Now that you are all set-up, it’s time to connect Dropbox to BackWPup.

What you probably didn’t notice, when you clicked on the Backup to Dropbox checkbox, a new tab was added at the top.

Setting up Dropbox's API with BackWPup

Of course, if you check off more places to store your files, you will add tabs for each.

Login

Click on the Dropbox tab and you will see a few choices.

Setting up Dropbox's API with BackWPup

Before you can use Dropbox, BackWPup has to communication with Dropbox. This is done through authentication.

We will be authenticating with App Access to Dropbox. This will help us keep our backups in a separate folder from all of our other Dropbox goodies.

If you are not logged in to Dropbox, do so before clicking on the Get Dropbox App auth code button.

NOTE: You can also grant BackWPup access to your Full Dropbox account.

Setting up Dropbox's API with BackWPup

I don’t like giving Full Access to anything because I am sometimes dumb and accidentally delete or overwrite things. The choice is yours, I only grant App Access.

Another cool thing about App access is how my files are automatically organized for me on my hard drive.

Setting up Dropbox's API with BackWPup

API Access

Click on the Get Auth button and you will be taken to the Allow access page which you will click ALLOW.

Setting up Dropbox's API with BackWPup

You will be taken to a page that will give you the code to put into BackWPup. This will always be your App access key so you can copy it down somewhere safe for future use or keep clicking on the Get Auth button (I’ve blurred mine out). Sometimes finding what I saved can take longer. Click once on the string of characters, Ctrl+C and go back to the BackWPup To:Dropbox settings tab.

Setting up Dropbox's API with BackWPup

Backup Settings

Enter in a name you want that will be created and store your backups.

Setting up Dropbox's API with BackWPup

Under File Deletion, tell how many backups to store. This is a helpful automation, you might forget and overload your Dropbox free account. 15-30 should be fine for a small website.

Click on Save Changes and you will get a success from Dropbox’s API. If you do not get a success then you did something wrong. Repeat the steps for Integrating Dropbox again.

Setting up Dropbox's API with BackWPup

You can now run your first backup if you like, we are not going to do that just yet, let’s finish up the Scheduling part first.

Scheduling

From the screen that you are at, click on the Scheduling tab and you will see a few options.

How to integrate BackWPup and EasyCron

Job Schedule

You can choose, manually only, with WordPress cron, with EasyCron.com or with a link.

We are going to choose “with EasyCron”. You can always manually run a backup from within the BackWPup menu.

You can also use a link, just copy the link, paste it into your browser and hit enter. The link will send the request and start the process even if you are not logged into WordPress or from another location.

We will use EasyCron and to make that button available we have to click on First Setup API Key.

EasyCron API Key

Clicking on the First Setup API Key link takes you to another Settings area within BackWPup.

How to integrate BackWPup and EasyCron

First, make sure you are logged into EasyCron, then, click on the EasyCron API key link.

You are then taken to the EasyCron API page, copy the API Token and return to the Settings page.

How to integrate BackWPup and EasyCron

Paste in the Api key and Save Changes.

How to integrate BackWPup and EasyCron

You will now need to navigate back to the Backup Job you created or hit the back button until you get back to the Scheduling page (you will also need to hit refresh to see the radio button become activated).

To navigate back, hover over the BackWPup menu on the left, choose Jobs and hover over your Job title and choose edit.

Then click on the Schedule tab.

Break Time

You deserve a break, so here is a Gif to make you laugh (nod to wpbuffs.com’s Joe Howard).

How to integrate BackWPup and EasyCron

Scheduling

Now that you are back at the Scheduling tab, you will now see that the option button is now available.

Click on the option button.

How to integrate BackWPup and EasyCron

Scheduling now appears and you can choose the options that best fits your schedule and the space you have available.

Keep in mind that the HOUR drop down menus are in a 24-hour format. So if you want to run a backup at 5pm you will need to add 12 to 5 = 1700, or Hour 17 Minute 00. A minor inconvenience.

Click on the Save Changes button.

Let’s go to EasyCron to make sure that the Scheduling Job was added.

How to integrate BackWPup and EasyCronLook for your Job ID. If it’s the correct job then you did everything right.

At the top of this screenshot you will see the arrow pointing to the words, “Total 200 EPDs.” EPD stands for Executions Per Day. If you wanted to make a backup every hour, then you would use 24 EPD’s a day. The Free Plan has a maximum of 200 EPD’s, but the $8 plan has 4,000 EPD’s.

200 sounds like a lot and it is, if you are using it for 3 or 4 websites. If you have 15 websites x 24 EPD’s = 360. Definitely outside of the Free Plan. Don’t worry, you’ve got plenty for now.

Running a Backup Job

Before we test EasyCron to make sure it’s working, we are going to run a Backup Job. We want to confirm that BackWPup is working and that Dropbox is working well.

How to integrate BackWPup and EasyCron

Find your Job ID (mine is 4) and Click on Run Now.

How to integrate BackWPup and EasyCron

The Job will start and you will get some feedback bars as the backup runs.

How to integrate BackWPup and EasyCron

When I ran my backup for the first time, I noticed it was taking longer than I thought it should.

I clicked on the Display working log button and it gave me a live progress report.

How to integrate BackWPup and EasyCron

I noticed that 6,277 folders were way more than it should be. This was because BackWPup was running at the root of my web server and included all my other sub-folders for other websites.

I went and edited the job to Exclude those other folders.

I ran the job again and got another error message.

How to integrate BackWPup and EasyCron

This meant that a request was sent to my server, but the server never responded. After 10 seconds BackWPup gave up. This could be for many reasons, so I didn’t take it too serious and ran the job again and got success.

How to integrate BackWPup and EasyCron

BackWPup is not without it’s share of technical problems. Thankfully, there is the Display Working Log, and other error messages to help you solve the problem.

If you can’t figure it out, when you get an error message, click on link for information (see image below).

How to integrate BackWPup and EasyCron

This will give you some info you can send or put up in the forum. I haven’t test the forums or customer support. I haven’t had the need to.

Back to Scheduling through EasyCron.

Let’s edit our job and make some scheduling changes so we can make sure that EasyCron is working before we go to sleep and wake up with no backups.

How to integrate BackWPup and EasyCron

Click on the Schedule tab and set it to Daily and put it 10 minutes from whatever time you are at right now. For me it’s 00 Hour 15 minutes.

How to integrate BackWPup and EasyCron

Now, take another break and check back soon. While I wait, I went to EasyCron and noticed that the time had changed. To see if your time is correct, look under the Espressions column.

How to integrate BackWPup and EasyCron

15 is the minute and 0 is the hour (midnight).

Success

I went to EasyCron at 12:15AM and the job had run successfully.

How to integrate BackWPup and EasyCron

The job did run on time, but there looks like there were some errors. Unfortunately, the Free Plan does not give you access to an error log.

However, I checked my Dropbox and the zip file was uploaded and after looking inside, I saw that all the files were there. I also did not get an Error Log emailed to me from BackWPup plugin saying my backup failed. Overall I’m satisfied with the backup.

You did it!

You now have a backup schedule and integration with EasyCron and Dropbox. I will admit that this wasn’t the easiest of backup systems, but it works, communicates errors effectively and has a nicely featured free plugin.

Last words

Like everything, your results may vary and you should contact BackWPup, EasyCron or Dropbox, if things don’t work out so well for you. I hope you enjoyed and found this tutorial helpful.

By | 2017-10-29T12:46:39+00:00 October 27th, 2017|Plugin, Tutorial|0 Comments

About the Author:

Jesse Velez enjoys writing, speaking and sharing about all things internet.