如果备份到本地会报如下错误:
[Bash shell] 纯文本查看 复制代码 Traceback (most recent call last):
File "/www/server/panel/script/backup.py", line 48, in <module>
backup.backupDatabaseAll(sys.argv[3])
File "/www/server/panel/script/backup.py", line 33, in backupDatabaseAll
self.backup_database_all(save)
File "class/panelBackup.py", line 470, in backup_database_all
result = self.backup_database(database['name'],save=save)
File "class/panelBackup.py", line 533, in backup_database
self.echo_start()
File "class/panelBackup.py", line 60, in echo_start
print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256) |