   # clone a site
   when 'clone'
 
-    id_mapping = {}
     src_slug = args[0]
     dst_slug = args[1]
 

        connect (user, db) ->
          db.sites = db.get 'sites'
          db.objects = db.get 'objects'
          next null, db

      # get the source site
      (db, next) ->
        log 'find the source site'
        db.sites.findOne {
          slug: src_slug

        site.settings.seo = {}
        site.settings.icons = {}
        db.sites.insert site, (err, dst_site) ->
          next err, {db, src_objects, dst_site}

      # insert objects
      ({db, src_objects, dst_site}, next) ->
        ids = {}
        async.map src_objects, ((src_object, callback) ->
          data = src_object.val()
