From 1c8c342666a0c90df139f85c1796472a300b3bda Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Tue, 26 Nov 2024 15:07:11 +0100 Subject: [PATCH] docs: write update-ciso-assistant manual --- update-ciso-assistant.sh | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/update-ciso-assistant.sh b/update-ciso-assistant.sh index bb5ff9451..bf891e442 100755 --- a/update-ciso-assistant.sh +++ b/update-ciso-assistant.sh @@ -1,5 +1,57 @@ #!/bin/bash +# --------------------------------------------------------------------------- +# Manual: Database Backup and Update Script for CISO Assistant +# --------------------------------------------------------------------------- +# This script is used to backup, restore, and update the CISO Assistant database +# and Docker containers. It supports database backup and restoration, +# version migration, and Docker image management. Below is a detailed guide +# on how the script works and how to use it. +# +# Usage: +# ./update-ciso-assistant.sh [OPTIONS] +# +# Options: +# --help, -h Display this help message +# [version] Specify the version of CISO Assistant to update to (default: 'latest') +# +# Example: +# ./update-ciso-assistant.sh 1.0.0 +# This will update CISO Assistant to version 1.0.0, backing up and restoring +# the database as needed. +# +# Prerequisites: +# - Docker should be installed and running +# - Docker Compose should be available +# - Poetry (if used for the backend) should be available in the Docker container +# +# --------------------------------------------------------------------------- + +# Display help message if --help or -h is passed as an argument +if [[ "$1" == "--help" || "$1" == "-h" ]]; then + cat <