Skip to content

[Feature] Production data should not be directly deleted when uninstalling software #8905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lovealan opened this issue Jun 4, 2025 · 1 comment

Comments

@lovealan
Copy link
Contributor

lovealan commented Jun 4, 2025

1Panel Version

2

Please describe your needs or suggestions for improvements

在卸载软件的操作过程中,为了确保数据的完整性和系统的稳定性,不应该直接删除与软件相关的生产数据,其中涵盖了诸如站点数据、数据库文件、容器配置等重要的目录或卷。这些生产数据往往包含着用户长期积累的业务信息和关键配置,一旦被误删,可能会导致数据丢失、业务中断等严重后果。

然而,目前在卸载时,却采取了较为粗暴的处理方式,直接移除了 /opt/1panel 目录。这种操作方式存在极大的风险,因为 /opt/1panel 目录下很可能存储着大量的生产数据。在没有进行任何数据备份或迁移的情况下,直接删除该目录,会使相关数据无法恢复,进而给用户带来不必要的损失和困扰。

为了避免此类情况的发生,建议在卸载软件前,明确提示用户对重要数据进行备份,并在卸载过程中提供更加细致、安全的操作选项,以保护用户的生产数据安全。同时,对于不再需要的数据,也应该提供合理的清理机制,确保系统资源得到有效释放的同时,不会对用户的重要数据造成损害。

Please describe the solution you suggest

No response

Additional Information

No response

@wanghe-fit2cloud
Copy link
Member

wanghe-fit2cloud commented Jun 4, 2025

可以的,后续版本考虑提供删除或备份数据目录的选项给用户。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants