本帖最后由 jiehao 于 2023-12-19 10:56 编辑
腾讯云和本地备份都会提示出错
Traceback (most recent call last):
File "/www/server/panel/script/backup.py", line 48, in <module>
backup.backupSite(sys.argv[2], sys.argv[3], echo_id)
File "/www/server/panel/script/backup.py", line 20, in backupSite
self.backup_site(name, save=count, echo_id=echo_id)
File "class/panelBackup.py", line 490, in backup_site
if not self.backup_path_to(spath, dfile, exclude, siteName=siteName):
File "class/panelBackup.py", line 428, in backup_path_to
p_size = public.get_path_size(spath, exclude=exclude_list)
File "class/public.py", line 1907, in get_path_size
total_size += os.path.getsize(filename)
File "/www/server/panel/pyenv/lib/python3.7/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
|