mojoPortal Tips: Synchronizing Your Local mojoPortal Instance With Your Live Site
Written by Carole Bennett Thursday, 20 September 2012
mojoPortal site upgrades are usually very smooth and straightforward. However, if it’s been a while since the last site upgrade, or there’s customization to the site, it’s really a good idea to have a synchronized version of the site on your local workstation to test upgrades or changes.
We’ll go with the pre-conditions that you have the local files for your mojoPortal implementation, including any customization, that you’re working in Visual Studio, and that you went with the default SQL Server back end.
Log into your hosting provider admin; depending on whether you have cPanel, Plesk, or other system, your route to the backup manager will vary. Once you’ve determined where your database backup is managed from, make a backup of your live database. Download your backup to your computer, and use the SQL Server Management Studio to restore it locally.
Open your local mojoPortal solution: check your connection string to ensure that you’ll be connecting with the database you’ve just backed up. Hit F5, and let your local mojoPortal instance start up. You should see a mirror of your online instance of mojoPortal, but on your local machine.
If it appears that your local files aren’t in sync with your web deployment, start with downloading the /Data/Sites folder; copy it to your local instance, and re-start your local site.