使用计划任务备份网站和备份数据,无法执行
宝塔版本号:7.5.2
计划任务设置如下:
报错日志如下:
- <pre class="crontab-log" 微软雅黑""="" style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; padding: 15px; line-height: 23px; color: rgb(241, 241, 241); word-break: break-all; background-color: rgb(51, 51, 51); border: 0px none; border-radius: 0px; white-space: pre-wrap; height: 405px;">/usr/lib64/python2.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
- from cryptography import x509
- global name 'myfunction2' is not defined</pre>
复制代码
|
|