Closed idev closed 5 years ago
Update: running the script returns:
user@server01:~/MISP-dockerized> ./current/scripts/backup_restore.sh backup all
./current/scripts/backup_restore.sh: line 18: /srv/MISP-dockerized/config/config.env: No such file or directory
mkdir: cannot create directory ‘/srv/MISP-dockerized’: Permission denied
chmod: cannot access '/srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07': No such file or directory
--- Start Backup ---
Backup server at /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07
tar: /srv/misp-server/MISP: Cannot stattar (child): /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07/backup_server_data.tar.gz: Cannot open: No such file or directory: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
tar: /srv/misp-server/apache2: Cannot stat: No such file or directory
tar (child): /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07/backup_server_config.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Backup redis at /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07
OK
tar: /srv/misp-redis: Cannot stat: No such file or directory
tar (child): /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07/backup_redis.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Backup proxy at /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07
tar: /srv/misp-proxy/conf.d: Cannot stat: No such file or directory
tar (child): /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07/backup_proxy_data.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Backup mysql at /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07 - This could take a while
\ ...working./current/scripts/backup_restore.sh: line 52: mysqldump: command not found
./current/scripts/backup_restore.sh: line 52: /srv/MISP-dockerized/backup/misp-2019-07-23-07-22-07/backup_mysql.gz: No such file or directory
--- Done ---
Good Morning,
docker ps
and ls -la <MISP-dockerized PATH>
But you are right :-) I overimproved the MISP-robot container. Therefore no mysql client is available. I will fix this with a new version.
user1@server01:~/MISP-dockerized> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6c5c7b71ae2c dockerhub.dcso.de/misp-dockerized-proxy:1 "/entrypoint_nginx.sh" 2 months ago Up 2 months (healthy) 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp misp-proxy
038a5cf3bce2 dockerhub.dcso.de/misp-dockerized-server:2.4.103-debian "/entrypoint.sh" 2 months ago Up 2 months (healthy) misp-server
a2e6544627ee dockerhub.dcso.de/misp-dockerized-redis:5-alpine3.9 "docker-entrypoint..." 2 months ago Up 2 months (healthy) 6379/tcp misp-redis
f521d5fdf031 dockerhub.dcso.de/misp-dockerized-robot:2 "bash" 2 months ago Up 2 months misp-robot
user1@server01:~/MISP-dockerized> cd ..
user1@server01:~> ls -la MISP-dockerized/
total 136
drwx------ 22 user1 user1 4096 Apr 30 13:30 .
drwx------ 8 user1 user1 4096 Apr 30 13:48 ..
drwx------ 4 user1 user1 4096 Apr 29 15:04 0.1.0
drwx------ 4 user1 user1 4096 Apr 29 15:04 0.1.1
drwx------ 4 user1 user1 4096 Apr 29 15:04 0.1.2
drwx------ 5 user1 user1 4096 Apr 29 15:04 0.2.0
drwx------ 6 user1 user1 4096 Apr 29 15:04 0.3.0
drwx------ 6 user1 user1 4096 Apr 29 15:04 0.3.1
drwx------ 6 user1 user1 4096 Apr 29 15:04 0.3.2
drwx------ 6 user1 user1 4096 Apr 29 15:04 0.3.3
drwx------ 6 user1 user1 4096 Apr 29 15:04 0.3.4
drwx------ 5 user1 user1 4096 Apr 29 15:04 1.0.0
drwx------ 5 user1 user1 4096 Apr 29 15:04 1.0.1
drwx------ 4 user1 user1 4096 Apr 29 15:04 1.0.2
drwx------ 4 user1 user1 4096 Apr 29 15:04 1.0.3
drwx------ 4 user1 user1 4096 Apr 29 15:04 1.1.0
drwx------ 4 user1 user1 4096 Apr 30 13:41 1.1.1
drwx------ 5 user1 user1 4096 Apr 30 13:14 backup
drwx------ 2 user1 user1 4096 Apr 29 15:04 .ci
drwx------ 6 user1 user1 4096 Apr 30 13:48 config
lrwxrwxrwx 1 user1 user1 5 Apr 30 13:14 current -> 1.1.1
-rw------- 2 user1 user1 1929 Oct 30 2018 .env
-rwx------ 1 user1 user1 4582 Apr 29 15:04 FOR_NEW_INSTALL.sh
drwx------ 8 user1 user1 4096 Apr 30 09:04 .git
-rw------- 1 user1 user1 152 Apr 29 15:04 .gitignore
-rw------- 1 user1 user1 5178 Apr 29 15:04 .gitlab-ci.yml
-rw------- 1 user1 user1 1541 Apr 29 15:04 LICENSE
-rw------- 1 user1 user1 726 Apr 29 15:04 Makefile
lrwxrwxrwx 1 user1 user1 20 Apr 30 13:30 misp-dockerized -> /srv/misp-dockerized
-rw------- 1 user1 user1 1358 Apr 29 15:04 README.md
drwx------ 2 user1 user1 4096 Apr 29 15:04 .scripts
-rw------- 1 user1 user1 3320 Apr 29 15:04 .travis.yml
-rwx------ 1 user1 user1 719 Apr 29 15:04 UPDATE.sh
-rwx------ 1 user1 user1 3049 Apr 29 15:04 UPGRADE.sh
-rw------- 1 user1 user1 0 Apr 30 13:14 UPGRADE_STEP_1
Thx.
I fixed the bug in the new robot. But the robot not available yet.
Fixed now.
Hello,
when I try to run make backup-all I get the response:
make: *** No rule to make target 'backup-all'. Stop.
Same with make backup
make: *** No rule to make target 'backup'. Stop.
Following the description in the doc: https://dcso.github.io/MISP-dockerized-docs/admin/dockerized_backup-restore.html#backup
Kind regards