{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "ssh root@prod.karlkratz.com \"ps aux | grep backup-prod-to-ki | grep -v grep; echo '==='; cat \/var\/run\/backup-prod-to-ki.lock 2>\/dev\/null; echo '==='; ls -la \/var\/backup\/staging\/ 2>\/dev\/null; echo '==='; ls -la \/var\/backup\/staging\/databases\/mariadb\/ 2>\/dev\/null | tail -20\"",
"description": "Check if backup process is still running"
}
}
{
"tool_response": {
"stdout": "root 3127072 0.0 0.0 7348 3732 ? S 09:50 0:00 \/bin\/bash \/var\/www\/scripts\/backup-prod-to-ki.sh\n===\n3127072\n===\ntotal 12\ndrwxr-xr-x 3 root root 4096 Feb 19 09:50 .\ndrwxr-xr-x 3 root root 4096 Feb 19 09:50 ..\ndrwxr-xr-x 3 root root 4096 Feb 19 09:50 databases\n===\ntotal 420564\ndrwxr-xr-x 2 root root 4096 Feb 19 09:52 .\ndrwxr-xr-x 3 root root 4096 Feb 19 09:50 ..\n-rw-r--r-- 1 root root 1219 Feb 19 09:50 admin_auth.sql.gz\n-rw-r--r-- 1 root root 1283090 Feb 19 09:50 admin.sql.gz\n-rw-r--r-- 1 root root 533 Feb 19 09:50 agent.sql.gz\n-rw-r--r-- 1 root root 5520964 Feb 19 09:50 anachroma_pipeline.sql.gz\n-rw-r--r-- 1 root root 1672596 Feb 19 09:50 apache_log_db.sql.gz\n-rw-r--r-- 1 root root 9661831 Feb 19 09:50 backup_restore.sql.gz\n-rw-r--r-- 1 root root 9762 Feb 19 09:50 bic.sql.gz\n-rw-r--r-- 1 root root 1074 Feb 19 09:50 claudia_grajek_de.sql.gz\n-rw-r--r-- 1 root root 6914235 Feb 19 09:50 code_documentation.sql.gz\n-rw-r--r-- 1 root root 1089517 Feb 19 09:50 code_intelligence.sql.gz\n-rw-r--r-- 1 root root 478 Feb 19 09:50 codequality.sql.gz\n-rw-r--r-- 1 root root 138334069 Feb 19 09:51 content_pipeline.sql.gz\n-rw-r--r-- 1 root root 1702 Feb 19 09:51 doc2vector.sql.gz\n-rw-r--r-- 1 root root 346755 Feb 19 09:52 freund_lexoffice_369wohlbefinden.sql.gz\n-rw-r--r-- 1 root root 1220120 Feb 19 09:52 freund_lexoffice_karlscore.sql.gz\n-rw-r--r-- 1 root root 56623104 Feb 19 09:52 freund_pipeline.sql.gz\n-rw-r--r-- 1 root root 207929223 Feb 19 09:52 freund.sql.gz",
"stderr": "",
"interrupted": false,
"isImage": false,
"noOutputExpected": false
}
}