Skip to content

Commit

Permalink
Stop mitmproxy as well while restoring
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 committed May 20, 2024
1 parent 35e64a1 commit 106482a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ print_info "Restoring Redis..."
# Redis cannot be running when restoring a dump or it will overwrite the restored dump when it exits
run_verbose_no_errors docker compose stop redis
run_verbose_no_errors docker compose cp "$backup_dir/redis.rdb" redis:/data/dump.rdb
run_verbose_no_errors docker compose start redis

print_info "Restoring Mitmproxy..."
# Mitmproxy cannot be running when restoring a backup or it will continue using its new certificate
run_verbose_no_errors docker compose stop mitmproxy-pretendo
run_verbose_no_errors docker compose cp "$backup_dir/mitmproxy" mitmproxy-pretendo:/home/mitmproxy/.mitmproxy

# The restored backup might be using different secrets than what are currently in the .env files
Expand Down

0 comments on commit 106482a

Please sign in to comment.