Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用tar和tar.gz格式备份,显示备份失败 #41

Closed
DavidBlackCN opened this issue Apr 4, 2023 · 6 comments
Closed

使用tar和tar.gz格式备份,显示备份失败 #41

DavidBlackCN opened this issue Apr 4, 2023 · 6 comments
Labels
info needed Further information is requested

Comments

@DavidBlackCN
Copy link

mc=1.18.2 with Fabric
MCDR=2.7.2

pluginl ist:
QBM=1.8.0

log:
[MCDR] [2023-04-04 23:27:20] [QBM - create/INFO]: storing ./server\world -> ./qb_multi\slot1\backup.tar.gz
[MCDR] [2023-04-04 23:27:27] [QBM - create/ERROR]: [QBM] Error creating backup
Traceback (most recent call last):
File "plugins\QuickBackupM-v1.8.0.mcdr\quick_backup_multi_init_.py", line 367, in create_backup
copy_worlds(config.server_path, slot_path, CopyWorldIntent.backup)
File "plugins\QuickBackupM-v1.8.0.mcdr\quick_backup_multi_init
.py", line 130, in copy_worlds
backup_file.add(src_path, arcname=world, filter=tar_filter)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\tarfile.py", line 1994, in add
self.add(os.path.join(name, f), os.path.join(arcname, f),
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\tarfile.py", line 1988, in add
self.addfile(tarinfo, f)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\tarfile.py", line 2016, in addfile
copyfileobj(fileobj, self.fileobj, tarinfo.size, bufsize=bufsize)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\tarfile.py", line 253, in copyfileobj
buf = src.read(remainder)
PermissionError: [Errno 13] Permission denied

@DavidBlackCN DavidBlackCN changed the title 使用tar和tar.gz显示备份失败 使用tar和tar.gz格式备份,显示备份失败 Apr 4, 2023
@Fallen-Breath
Copy link
Collaborator

如错误信息中所述,请检查文件权限。除此之外,对于 windows,请确保相关文件未被占用

@Fallen-Breath Fallen-Breath added the info needed Further information is requested label Apr 5, 2023
@ameyokomori
Copy link

一样,用tar格式就没权限,管理员启动也一样

@DavidBlackCN
Copy link
Author

已尝试使用管理员启动MCDR,且相关备份文件路径未被占用,仍如上所示(QBM update to 1.9.0)

Fallen-Breath added a commit that referenced this issue Jul 27, 2023
@Fallen-Breath
Copy link
Collaborator

可以试试 413b75f https://github.com/TISUnion/QuickBackupM/actions/runs/5681668571 里的版本

这个提交修了 tar 模式下 ignored_files 无法正常工作的问题,导致 QBM 会读取 session.lock 这个总是爱造成权限不足的文件。如果依然不行,这开发版本也能打印出具体到文件的错误信息,能帮忙定位问题

@KleinQwQ
Copy link

KleinQwQ commented Dec 7, 2023

这个正式版1.9还存在这个问题,然后您这个dev分支的包过期了 下载不了可以重发一边嘛?

@Fallen-Breath
Copy link
Collaborator

v1.10.0 已发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info needed Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants