Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Backup to a remote FTP using the Backup and Migrate module

Parent Feed: 

The backup and migrate module is an awesome module that you can use to create a MySQL dump file. You can use it to schedule database backups to the server filesystem, remote FTP server or even an amazon s3 bucket.

In this post I'll demonstrate how to setup a scheduled backup to a remote FTP server.

Like all Drupal contrib modules, just download the module and copy it into sites/all/modules and enable the module.

Once installed just go to Administration >> Configuration >> Backup and Migrate (admin/config/system/backup_migrate). From the front page you can easily get a database backup by clicking on the Backup now button. But first you'll have to setup a private file system path if you haven't already done so.

bm_1.png

Create New Destination

First we must create a new destination which would be our remote FTP server. To create one just click on the Destinations tab then click on the Add destination.

bm_2.png

Select FTP Directory and fill out the form. Make sure you have the IP, username and password handy. Once the form has been filled out just click on Save destination.

bm_3.png

Once saved click on "list files" to test and make sure you can connect to the remote FTP server.

bm_4.png

Create A Schedule

Next let's setup a schedule, to do this just click on the Schedules tab then click on the Create schedule tab.

bm_5.png

Just enter in a schedule name and select the destination that you created. Once all completed just click on Save schedule.

bm_6.png

For backup and migrate to work you now must run cron and make sure it's setup. Once cron is run, check and see that a backup has worked just click on the list files for the remote FTP server from the Destinations tab.

bm_7.png

If you have any questions or know of other administration type modules leave a comment.

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web