Skip to content
streetpc edited this page Apr 10, 2013 · 3 revisions

Mongo

The mongoDB base is not itself backed up but can be restored from access logs and scripts:

  • messages should be populated with the logs from law-large-front/nginx/*._plugin_access.log.gz with /capistrano/file/mongo/access2mongo.sh
  • landing_messages should be populated with the logs from imaginatio-small-front/nginx/*._prod_access.log.gz
  • prospects and vendorIds are imported by capistrano tasks from the splayce.com MySQL base, see
    • /capistrano/file/imaginatio/export_prospects.sql, /capistrano/file/imaginatio/export_license.sql for export
    • /capistrano/file/mongo/license2mongo.sh for import
  • hits_*, nb_*, stats_* and when_* collections are regenerated by the law:log:mongo capistrano task (see /capistrano/file/mongo/update.sh)
  • so is errors, it contains the errors when parsing [landing_]messages into [landing_]messagesTyped

TODO:

  • crash doesn't seem to be backuped, comes from play /crash action logged without date in logs/crashReport
  • test local import from log + landing DB

Clone this wiki locally