Book Image

Drupal for Education and E-Learning - Second Edition - Second Edition

Book Image

Drupal for Education and E-Learning - Second Edition - Second Edition

Overview of this book

As social networks become more popular, their role in the classroom has come under scrutiny. Drupal offers a wide variety of useful tools for educators. Within a single Drupal site, you can set up social bookmarking, podcasting, video hosting, formal and informal groups, rich user profiles, and other features commonly associated with social web communities. "Drupal for Education and E-Learning - Second Edition" teaches you how to create your own social networking site to advance teaching and learning goals in the classroom, while giving you complete control over features and access. Communicate with students, share learning resources, and track assignments through simple tasks with this hands-on guide.In this book you will learn to install and configure the default Drupal distribution and then extend it to include blogs, bookmarks, a media sharing platform, and discussion forums. The book also covers how to organize your site to easily track student work on the site, and how to control who has access to that information. Additionally, it teaches you how to make the site easy to use, how to maintain the site, and how to ask for and receive help in the Drupal community.
Table of Contents (23 chapters)
Drupal for Education and E-Learning - Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Command-line backups of core codebase, contributed modules, and files


Earlier in this chapter, we took a full backup of the codebase by downloading a copy of the codebase via FTP. In this section, we will cover how to make code and file backups via the command line. We will also break our backup into three separate sections:

  • The core codebase

  • Contributed modules, contributed themes, and the settings.php file

  • The files directory

These distinctions will be useful later in the chapter when we go over how to upgrade your site.

The master backup

You should perform a master backup when you launch your site, and again after upgrading your site. This master backup contains the code and the themes you need to run your site. To perform the master backup, you need to copy and archive the web directory running your Drupal install.

In this example, we will back up the site in the drupal7 directory.

  1. Log in to your server and cd to the staging directory. For more information on creating a staging directory, refer...