We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • You would probably be better off going into your Cloud dashboard and installing phpMyAdmin, and using that to backup the database if you aren't familiar with the command line and ssh.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
    • I would love to use the MODX cloud as a developer bin: Take an existing MODX Revolution, vapor it to the cloud, do my stuff and, when done, vapor it back. If this workflow can be done right now, that's awesome, because it's a huge timesaver.
        MINDEFFECTS – DESIGN for PRINT, WEB and MEDIA
        http://twitter.com/mindeffects · http://www.facebook.com/mindeffects · http://www.youtube.com/mindeffects/ · skype://mindeffects_oliver
        • 36561
        • 38 Posts
        I do exactly that, but the whole workflow is a bit more than a few clicks.

        The key to a simple process (local <-> MODX Cloud) is to setup your local install exactly like the Cloud.
        Meaning, you create the database and user with the same credentials as does the Cloud:

        DB-name: instance_cXXXX_modx
        DB-user: cXXXX
        Password: same_as_on_cloud


        Also, on the filesystem your path needs to be the same, as on the Cloud:
        /paas/cXXXX/www/

        If you're using MAMP Pro, that's quite easy to setup. Just create the directories and point the site to it.
        Otherwise, you need to find out, how to setup your local webserver that way.

        Now, to export a site from the Cloud using the command line:

        1. SSH into your MODX cloud. Make sure your're in the www/ directory

        2. create a dump of the DB
        mysqldump database -uusername -ppassword > database.sql

        like so:
        mysqldump instance_cXXXX_modx -ucXXXX -pThePassword > my_db_dump.sql


        3. create an archive of all the files
        tar czf my_archive.tar.gz ../www


        4. Now you can download the created archive over FTP

        5. On your local machine, put the archive inside the www/ directory of your site

        6. extract the archive
        tar xzf my_archive.tar.gz


        7. put the sql-dump into your local db
        mysql database -uusername -p < database.sql

        like:
        mysql instance_cXXXX_modx -ucXXXX -p < my_db_dump.sql

        (it asks you for the password of the db)


        An Extra to do all that, with the click of a button, surely would be a lot nicer, though.
        • Actually Vapor works pretty well; install it and run it from the browser on the Cloud server, then install it as a package into a new installation on your localhost. This won't work if the site is too big; the vapor script will time out.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 36561
            • 38 Posts
            Well, so much for my long post. Guess I like the terminal.

            Vapor to local sounds good.
              • 42967
              • 143 Posts
              Have I got this right?

              - Export snapshot on modx cloud Use vapor to create transport package
              - Install modx on clients existing server
              - Put exported transport file in core/packages
              - install through package Management

              if so, sounds great!
                Eighth day design
                Design agency with offices in Edinburgh and Brighton
              • I've had success at it; can't promise for all servers and configurations, as they say YMMV.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                • Vapor is so useful for site backup and zipping sites from production on modxcloud to whatever host used that I think it should be made a main feature. If snapshots could be scheduled, managed and archived within the manager interface it would be a great addition to MODX.
                    • 49300
                    • 19 Posts
                    Any luck on this yet?
                      • 10357
                      • 573 Posts
                      The 7 days of backup just does not cut it, as we have had sites hacked that had not been discovered within 7 days.

                      There is also the huge problem that you can only restore a backup to the same cloud. I need to check the backup before making it live!