1 | |
---|
2 | CONTENTS OF THIS FILE |
---|
3 | --------------------- |
---|
4 | |
---|
5 | * Overview |
---|
6 | * Installation |
---|
7 | * Usage |
---|
8 | |
---|
9 | OVERVIEW |
---|
10 | -------- |
---|
11 | |
---|
12 | The purpose of this module is to provide a way to move data between |
---|
13 | Drupal instances. |
---|
14 | |
---|
15 | This is not easy to achieve as Drupal stores configuration and data in |
---|
16 | the same database. Also, Drupal can be extended and customised which |
---|
17 | makes creating a standard data export/import module effectively |
---|
18 | impossible. |
---|
19 | |
---|
20 | This module will provide a framework for exporting datasets as files |
---|
21 | and also for importing these dataset files. That way if the module is |
---|
22 | installed on two separate Drupal instances it will be possible to |
---|
23 | export data as a dataset file from one instance and import it into a |
---|
24 | different Drupal instance. |
---|
25 | |
---|
26 | This module will be customisable and extendable by adding new profiles |
---|
27 | to take into account different Drupal builds. This means that if a |
---|
28 | Drupal instance has a very specialised setup it will be possible to |
---|
29 | create a new dataset profile to export/import data. |
---|
30 | |
---|
31 | The module currently includes two initial dataset profiles which can |
---|
32 | be used on standard Drupal instances. These enable the following |
---|
33 | datasets to be exported/imported. |
---|
34 | |
---|
35 | * Taxonomy vocabulary terms |
---|
36 | * Pages |
---|
37 | |
---|
38 | When exporting all data should be exported - when importing the data |
---|
39 | should be used in a way to make sure that the receiving Drupal |
---|
40 | instance ends up with matching data. Careful checks will be needed to |
---|
41 | ensure ID's match, that the data remains consistent. |
---|
42 | |
---|
43 | Effectively this module will be similar to the backup_migrate module |
---|
44 | except that the backup_migrate profiles will be extended. Currently |
---|
45 | the backup_migrate profiles only allow for the choice of which tables |
---|
46 | will be exported/imported and a few other settings. This module will |
---|
47 | use the Druapl API to read data and produce rich data files which will |
---|
48 | contain all data needed to reproduce a particular dataset. It will |
---|
49 | also use the Drupal API to recreate data. It may also be necessary to |
---|
50 | use SQL directly to export/import data. |
---|
51 | |
---|
52 | The primary usage for this module is envisioned to be exporting |
---|
53 | datasets from a live Drupal site and importing this live data into a |
---|
54 | new updated version of the site which developers have been working |
---|
55 | on - i.e. a beta version. Once the import has completed then the newly |
---|
56 | developed site can become the new live site. This has the advantage of |
---|
57 | being able to fall back to the original live site if there is an |
---|
58 | unforseen problem between the new version of the site and the live |
---|
59 | data. |
---|
60 | |
---|
61 | It will be necessary to carry out proper checks when importing |
---|
62 | datasets. E.g.. when node data is being imported it will be necessary |
---|
63 | to check that the receiving site has the correct content type and |
---|
64 | fields etc. It may be necessary to use the UUID module to provide |
---|
65 | unique ID's. |
---|
66 | |
---|
67 | INSTALLATION |
---|
68 | ------------ |
---|
69 | |
---|
70 | * Put the module in your Drupal modules directory and enable it in |
---|
71 | admin/build/modules. |
---|
72 | * Go to admin/user/permissions and grant permission to any roles that |
---|
73 | need to be able to export or import datasets. |
---|
74 | |
---|
75 | USAGE |
---|
76 | ----- |
---|
77 | |
---|
78 | * Configure and use the module at admin/content/data_export_import. |
---|
79 | * The dataset files are exported to and imported from |
---|
80 | {files}/data_export_import. Various methods can be used to manage |
---|
81 | the files and to move the files between Drupal instances. |
---|
82 | Although not tested the module at: |
---|
83 | http://drupal.org/project/webfm looks suitable for file management. |
---|
84 | * The user which is running the module needs to have permissions to |
---|
85 | be able to delete nodes when importing pages. It is expected that |
---|
86 | data exporting and importing will be carried out by the admin user |
---|
87 | which has correct permissions. |
---|
88 | * Currently the pages import has been created to import standard |
---|
89 | simple pages. It can handle a simple added text type CCK field - |
---|
90 | but any other file type fields are not being handled yet. |
---|
91 | * If you have taxonomy terms associated with pages this has not been |
---|
92 | coded for yet. It may work OK but you might be better to import |
---|
93 | the taxonomy terms separately first and then import the pages. |
---|
94 | |
---|
95 | NOTES |
---|
96 | ----- |
---|
97 | |
---|
98 | * This module is not compatible with any site which has localisation |
---|
99 | enabled. Checks have been put in place to prevent data being output |
---|
100 | if localisation has been installed and enabled using the i18n |
---|
101 | module. |
---|
102 | * If this is a requirement then please get in touch with the |
---|
103 | maintainer. |
---|