1Panel
1Panel copied to clipboard
[Feature] How to use commands to decrypt compressed files
1Panel Version
v1.10.24-lts
Please describe your needs or suggestions for improvements
在备份应用的计划中,我使用了压缩密码来压缩备份文件。现在我想将备份文件迁移至别处,需要解密,我翻了github上的提问,没有找到相关的方法,只知道使用openssl加密的,所以尝试过通常的解密方式,但是一直失败。知道解密密码,如何在Linux使用命令行解密呢?
Please describe the solution you suggest
No response
Additional Information
No response
openssl enc -d -aes-256-cbc -k 解压密码 -in 压缩文件完整目录 | tar -zxvf - -C 压缩文件解压目录 > /dev/null 2>&1
例:
openssl enc -d -aes-256-cbc -k admin123 -in /opt/1panel/backup/directory/test-dir/directory_opt_1panel_conf_20250217144832twwez.tar.gz | tar -zxvf - -C /opt/1panel/backup/directory/test-dir > /dev/null 2>&1