# PVE 備份 LXC 失敗問題

<span style="color: rgb(0, 0, 0);">**當使用PVE備份LXC時，出現`INFO: tar: /mnt/pve/synology_home_backup/dump/vzdump-lxc-103-2025_10_31-13_50_35.tmp: Cannot open: Permission deniedERROR: Backup of VM 103 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536..`等訊息並備份失敗**</span>

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-10/scaled-1680-/C0Vimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-10/C0Vimage.png)

<span style="color: rgb(0, 0, 0);">**由於非特權容器不是使用root執行備份，而vzdump預設把/tmp 拿來當做暫存資料夾故沒權限寫入而失敗**</span>

<span style="color: #000000;">**解決方法在`/etc/vzdump.conf `編輯tmpdir指向其他目錄**</span>

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-10/scaled-1680-/qVkimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-10/qVkimage.png)

<span style="color: rgb(0, 0, 0);">**在執行備份就能成功**</span>

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-10/scaled-1680-/Rdbimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-10/Rdbimage.png)