migration

20

Click here to load reader

Upload: stefan-nistor

Post on 08-May-2015

537 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Migration

Migration

www.wearepropeople.com

Nagailic Sergiu | Nikro

Propeople [ http://wearepropeople.com/ ]

Page 2: Migration

www.wearepropeople.com

Content:

1. Introduction to migration.2. Old school migrations.3. Feeds module.4. Migrate module.5. Other approaches.6. Round-up.

Page 3: Migration

www.wearepropeople.com

Introduction to migration.

• Advantages of migration-type projects• Drawbacks of migration-type projects• Automated vs Manual migrations

Page 4: Migration

www.wearepropeople.com

Introduction to migration.

• Analyze the source structure• Setup the destination project

• Install all needed modules• Create entities and bundles• Define relationships

• Pick a migration method• Implement migration• Run migration until expected results are met

Page 5: Migration

www.wearepropeople.com

Old school migration.

• Raw scripts• Batch API

Page 6: Migration

www.wearepropeople.com

Feeds module.

• Simple pluggable architecture

• Lots of plugins• Neat UI• Exportable configurations• Keeps track of imported

items (rollbacks, etc.)• Great documentation

Page 7: Migration

www.wearepropeople.com

Feeds module.

Page 8: Migration

www.wearepropeople.com

Feeds module.Fetchers:•Core

• File• HTTP• PubSubHubbub

•Other• Directory Fetcher• Oauth• SOAP/WSDL Fetcher• Mailhandler Fetcher• Feeds SQL• Clients Fetcher

Parsers:•Core

• Common syndication parser• CSV parser• OPML parser• Sitemap parser• Simplepie-parser

•Other• Xpath Parser• YouTube• Vimeo• Slideshare• Flickr• iCal• REGEX parser

Processors:•Core

• Node processor• Taxonomy term

processor• User processor• Feed Node processor

•Other• Date• Atom• Node Multisource• Comment processor• Commerce products

processor• Self Node Processor

Page 9: Migration

www.wearepropeople.com

Feeds module.Misc modules:•Feeds Image Grabber•Location Feeds•Geo taxonomy•Extractor•Term Uncle•Ubercart Feeds•Media Feeds•Aegir Feeds

Helper modules:•Feeds Tamper•Feeds Crawler•Feeds Hacks

Page 10: Migration

www.wearepropeople.com

Feeds module.

<?php print arad_get_demo(‘feeds’);

Page 11: Migration

www.wearepropeople.com

Migrate module.• Provides a big & dynamic migration framework• Is object oriented and easily extensible • Provides a simple UI for migration monitoring• Requires code writing• Keeps tracks of migrated rows (rollbacks, etc.)• Offers lots of Migration, Source, Destination,

Mapping and Handler classes• Great documentation

Page 12: Migration

www.wearepropeople.com

Migrate module.• Provides a big & dynamic migration framework• Is object oriented and easily extensible • Allows dependent migrations• Provides a simple UI for migration monitoring• Requires code writing• Keeps tracks of migrated rows (rollbacks, etc.)• Offers lots of Migration, Source, Destination,

Mapping and Handler classes• Great documentation

Page 13: Migration

www.wearepropeople.com

Migrate module.• Source classes:

• MigrateSourceCSV• MigrateSourceList• MigrateSourceMSSQL• MigrateSourceOracle• MigrateSourceSQL

• Destination classes:• MigrateDestinationComment• MigrateDestinationEntity• MigrateDestinationFile• MigrateDestinationFlagSimple• MigrateDestinationMedia• MigrateDestinationNode• MigrateDestinationOGMembership• MigrateDestinationRole• MigrateDestinationTable• MigrateDestinationUser• MigrateDestinationTerm

Page 14: Migration

www.wearepropeople.com

Migrate module.• Map / Mapping

classes:• MigrateFieldMapping• MigrateSQLMap• MigrateMap• MigrateXMLFieldMapping

Page 15: Migration

www.wearepropeople.com

Migrate module.

<?php print arad_get_demo(‘migrate’);

Page 16: Migration

www.wearepropeople.com

Other approaches.Meh, I'll just talk here.

Page 17: Migration

www.wearepropeople.com

Round-up.

Page 18: Migration
Page 19: Migration

Keep in touch:

Web: http://nikro.me/Twitter: nikro_md

Tomorrow's session: Drupal Services & Backbone.js

Live: Saying “Hi” is enough

Page 20: Migration

www.wearepropeople.com

Thanks!