为了能快速了解并处理您的问题,请提供以下基础信息:
- <div class="blockcode"><blockquote>==========================================================================================
- Traceback (most recent call last):
- File "/www/server/panel/script/backup.py", line 58, in <module>
- backup.backupDatabase(sys.argv[2], sys.argv[3], echo_id)
- File "/www/server/panel/script/backup.py", line 23, in backupDatabase
- self.backup_database(name, save=count, echo_id=echo_id)
- File "class/panelBackup.py", line 798, in backup_database
- self.echo_start()
- File "class/panelBackup.py", line 120, 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)
- ----------------------------------------------------------------------------
- ★[2024-12-06 20:30:01] Successful
- ----------------------------------------------------------------------------
- /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
复制代码 上面是自动化执行的报错 下面是手动点的执行 ==========================================================================================
★开始备份[2024-12-06 21:57:03]
==========================================================================================
|-备份MySQL数据库:tuominchuli
|-数据库大小:5.12 GB
|-数据库字符集:utf8mb4
|-分区/www可用磁盘空间为:763.70 GB,可用Inode为:54888392
|-开始导出数据库:2024-12-06 21:57:03
|-数据库备份完成,耗时81.81秒,压缩包大小:374.04 MB
[36m[2024-12-06 21:58:26][DEBUG] tuominchuli|tuominchuli|tuominchuliq/|ARCHIVE[0m
|-正在上传到腾讯云COS,请稍候...
|-正在上传到 bt_backup/database/mysql/tuominchuli/tuominchuli-12-06_21-57-03_mysql_data.sql.gz...
[36m[2024-12-06 21:58:26][DEBUG] tuominchulimysqltuominchulimysqlbackup|/bt_backup/|ARCHIVE[0m
[36m[2024-12-06 21:58:26][DEBUG] tuominchulibmysqltuominchulimysqlbackup|/bt_backup/|ARCHIVE[0m
|-已成功上传到腾讯云COS
|-数据库已备份到:/www/backup/database/mysql/crontab_backup/tuominchuli/tuominchuli-12-06_21-57-03_mysql_data.sql.gz
|-本地备份已保留。
|-保留最新的备份数:120 份
==========================================================================================
☆备份完成[2024-12-06 21:59:33]
==========================================================================================
----------------------------------------------------------------------------
★[2024-12-06 21:59:33] Successful
----------------------------------------------------------------------------
最后一步是手动执行的,显示成功
|
|