Upgrading From AutoGallery 2.0.x

Introduction

This document will descibe the steps necessary to upgrade from AutoGallery 2.0.x to AutoGallery SQL 3.6.x. This upgrade process will work only for AutoGallery 2.0.x. The upgrade process will allow you to keep your current galleries, however, your templates cannot be imported. You should allow time to customize the new templates once your upgrade is complete.

Export Your Data

First you need to export your AutoGallery 2.0.x data into a format that AutoGallery SQL can understand. This is simple to do with the export utility included with the 3.6.x version. In the utilities directory of the software distribution you will find a file named ag2.0.x.cgi. Upload that file to your server in ASCII mode to the same directory where your AutoGallery 2.0.x ag.pl file is located. Set it's permissions to 755 and then bring it up in your browser. It may take a few minutes for the data export to complete. Once it does you will see a message telling you to continue to the next step of the upgrade process.

The export script has created one file in the data directory of your AutoGallery 2.0.x installation. FTP into your server and download the file named upgrade.dat. It is very important that you download the upgrade.dat file in binary mode or it will be corrupted and will not be readable by AutoGallery SQL.

Decision Time

At this point you need to decide if you want to install AutoGallery SQL in a new directory or keep the same directory name. The benefit of installing in a new directory is that you can keep AutoGallery running while you work with the new AutoGallery SQL installation. The benefit of keeping the same directory name is that you will not have to change any links or bookmarks to the script.
Importing Your Data

Once you have your AutoGallery SQL 3.6.x installation up and working properly, you can import the AutoGallery 2.0.x data. FTP into your server and upload the upgrade.dat file to the data directory of your 3.6.x installation. It is very important that you upload the upgrade.dat file in binary mode or it will be corrupted and will not be readable by the 3.6.x installation.

Next you will need to login to your AutoGallery SQL 3.6.x control panel. Locate and click on the Database Tools link in the Setup section of the control panel menu. AutoGallery SQL will then display a page where you will find a box at the top titled "Database Backup/Restore". In the "Backup Filename" field enter upgrade.dat. Once the field is filled in, click on the Restore button. AutoGallery SQL will read the data files and import the data from your 2.0.x installation. This may take a few minutes, so allow enough time for it to complete. After enough time has elapsed, you can continue begin using the software as usual.

Removing AutoGallery 2.0.x

Once your data has been imported and you are sure that you no longer need the AutoGallery 2.0.x installation you can delete it from your server. Simply delete all of the AutoGallery 2.0.x files and folders. Once they have been deleted, the removal is finished.