Your installation of Squore includes some scripts designed to help save and restore snapshots of your analysis data. These scripts will allow you to:
Backup the current Squore data (See the section called “Backing-Up the Squore Installation”);
Restore a previously saved snapshot (See the section called “Restoring Squore Data”);
Reset the Squore installation to its initial state to erase all projects and users (See the section called “Resetting the Squore Installation”);
The scripts are located in the <SQUORE_HOME>/bin
folder of the Squore
installation directory.
Before launching a backup or restore operation, stop Squore Server completely and start the Squore Database using the scripts in <SQUORE_HOME>/bin.
The contents of the Squore Database and file system can be saved using the
backup script
located in the <SQUORE_HOME>/bin
folder of the Squore installation directory.
Executing this script creates a folder containing a database dump and a backup of the file system in the location configured in
<SQUORE_HOME>/config.xml
. This backup folder can later be used by a script that restores database and file system snapshots, which we will cover in the next section.
Launch
Start > Squoring > Squore > Admin
> Backup Data
You can also run backup.bat from <SQUORE_HOME>/bin followed by a path to backup directly to this folder.
The Windows and Linux backup scripts accept a parameter that is used as the path to store the backup in. this makes it possible to use a scheduled task on Windows or a cron job on Linux to automate your backups.
Backups can be launched while the server is running, but it is recommended to regularly perform a backup while the server is stopped. This guarantees that the database and the data files are in sync, which may not be the case if your server is started and analyses are running.
A previously backed-up Squore snapshot can be restored using the
restore script from the <SQUORE_HOME>/bin
folder.
The script uses the data dump in the
backup
folder specified when installing Squore to restore the database and file data for this snapshot.
Shutdown Squore Server:
Start >
Squoring > Squore > Launch > stop-server.bat
Launch
Start > Squoring > Squore > Admin
> Restore Saved Data
Start the Squore Application server again after the script finishes via
Start >
Squoring > Squore > Launch > start-server.bat
You can reset the Squore installation to its initial state, and therefore delete all your projects and users using the restore script located in the
<SQUORE_HOME>/bin
folder of the Squore installation directory.
Shutdown Squore Server:
Start >
Squoring > Squore > Launch > ShutdownServer
Launch
Start > Squoring > Squore > Admin
> Clear Data
Start Squore Server after the script finishes, via
Start >
Squoring > Squore > Launch > start-server.bat
Alternatively, you can use <SQUORE_HOME>/restore-empty.bat instead of using the Start Menu entry.