Created
February 10, 2026 01:24
-
-
Save MaDestros/a91eaa625f37b9f3d69154d477c600f4 to your computer and use it in GitHub Desktop.
Быстрая очистка логов в ProxMox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # quick-clear-pve-tasks.sh | |
| echo "Быстрая очистка всех задач Proxmox..." | |
| # Временное отключение сервисов | |
| systemctl stop pvedaemon | |
| systemctl stop pveproxy | |
| # Очистка БД задач | |
| sqlite3 /var/lib/pve-cluster/config.db "DELETE FROM tree WHERE name LIKE 'tasks/%';" | |
| sqlite3 /var/lib/pve-cluster/config.db "VACUUM;" | |
| # Очистка лог файлов | |
| rm -f /var/log/pve/tasks/*.log 2>/dev/null | |
| # Запуск сервисов | |
| systemctl start pvedaemon | |
| systemctl start pveproxy | |
| systemctl restart pve-cluster | |
| echo "Очистка завершена!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment