From 5134238bbe1af1dca6233dbca6c7d0727d04e01d Mon Sep 17 00:00:00 2001 From: Stefano Ortolani Date: Sun, 12 Jan 2025 11:43:00 +0000 Subject: [PATCH] Update README.md --- README.md | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index b291d33..82e55f4 100644 --- a/README.md +++ b/README.md @@ -137,42 +137,34 @@ The process is *NOT* battle-tested, so it is *NOT* to be followed uncritically. ### Backup -1. **Stop the MISP container**: - +1. Stop the MISP containers: ```bash docker compose down ``` -2. **Create an archive of the `misp-docker_mysql_data` volume**: - Use `tar` to archive the volume data: - +2. Create an archive of the `misp-docker_mysql_data` volume using `tar`: ```bash tar -cvzf /root/misp_mysql_backup.tar.gz /var/lib/docker/volumes/misp-docker_mysql_data/ ``` -3. **Start the MISP container**: - +3. Start the MISP containers: ```bash docker compose up ``` ### Restore -1. **Stop the MISP container**: - +1. Stop the MISP containers: ```bash docker compose down ``` -2. **Unpack the backup and overwrite the existing data**: - Use the `--overwrite` option to replace the existing files: - +2. Unpack the backup and overwrite existing data by using the `--overwrite` option to replace existing files: ```bash tar -xvzf /path_to_backup/misp_mysql_backup.tar.gz -C /var/lib/docker/volumes/misp-docker_mysql_data/ --overwrite ``` -3. **Start the MISP container**: - +3. Start the MISP containers: ```bash docker compose up ```