Skip to content

Backing up the Database

Sean Batzel edited this page Jan 3, 2018 · 8 revisions

Backup

The build.sh script includes a function to back up and/or restore the database. The script is self-documenting, but the backup script should be run with the command ./build.sh backup.

build.sh is located in the ctleweb/ directory of this repository. Under an Apache web server, this would put it at /var/www/html/projtrack3/ctleweb/build.sh.

For more information on the build script, run ./build.sh without arguments or refer to the Build Script wiki page.

Restore

The same script provides functions for restoring the database from an earlier image. The shell script must be invoked as ./build.sh restore [path] where [path] is the name of the backup file you want to restore. By default, these files are stored in the user's home directory (e.g.) /home/ctle/.

Clone this wiki locally