Backup/Restore

Backup

There are two ways to backup astah* share data, one is by making copies of astah* share's whole data and another is by using script.

Backup by making copies of data

In order to backup this way, all you have to do is to make a copy of "%ASTAH_SHARE%\data" folder and preserve it on a different drive, folder, or a medium. astah* share needs to be shut down completely during copying a data.

  1. Double click "%ASTAH_SHARE%\shutdown.bat" to close astah* share
  2. Once astah* share is shut down completely, make a copy of "%ASTAH_SHARE%\data" folder and preserve it on where you want to save (i.e. D:\backup\data)
Do not launch astah* share until the copying process completes. If you do, the backup may fail.

Backup by using script

A script, %ASTAH_SHARE%\backup.bat is provided for you to backup astah* share data. You need to have astah* share running when you do your backup by using the script.

  1. Double click %ASTAH_SHARE%\backup.bat
  2. Backup will be created at specified path for "BACKUP_DIR" in the script. (%BACKUP_DIR%\Date of backup)
  3. Once you see backup.zip file and projects folders in the folder, that means all backup has been completed

Please adjust the variable for "BACKUP_DIR" and "ASTAH_SHARE" before you start the script.
In the example given below, "D:\backup" is a folder where all backup data wil be stored at, and "C:\astah-share-2_0" is astah* share Install folder.
set BACKUP_DIR=D:\backup
set ASTAH_SHARE=C:\astah-share-2_0

Restoring

There are two ways to restore astah* share's backup data. One is by simply using the copies of data, and another one is by using a script.

Restoring by using copies

If you want to restore backup data that you made by making copies of %ASTAH_SHARE%\data folder, please follow this step.

astah* share must be shut down completely in order to restore this way.

  1. Double click "%ASTAH_SHARE%\shutdown.bat" to close astah* share
  2. Once astah* share is shut down completely, paste the backup data in "%ASTAH_SHARE%\data"
  3. After you restore the data by this way, launch astah* share and check if all the backup data has been restored correctly
Do not start astah* share until the restoring is completed, if you do, the backup data may not be restored properly.
This method does not restore backup data made by using script.

Restoring by using script

This method restores backup data made by using script only. astah* share needs to be shut down before you start this script.

  1. Double click %ASTAH_SHARE%\restore.bat
  2. Once the restoring is completed, launch astah* share and check if all the backup data has been restored correctly
Please adjust the variable of "BACKUP_DIR" and "ASTAH_SHARE" before you start the script.
In the example given below, "D:\backup\2009_10_19_08_00" is target backup data and "C:\astah-share-2_0" is where backup data will be restored at.
set BACKUP_DIR=D:\backup\2009_10_19_08_00
set ASTAH_SHARE=C:\astah-share-2_0