Can't get DietPi backup to work

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version |

  • Distro version | bookworm 0

  • Kernel version | 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/LINUX

  • Architecture | arm64

  • SBC model | RPi 5

  • Power supply used | Original RPi 5 power supply

  • SD card used | No SD-card; SSD Kingston A-400

Additional Information (if applicable)

  • Software title | DietBackupmanager

Hello,

I want to do a backup of my whole system using the DietPi-Backup-Explorer.
For that purpose I’ve mounted a backup folder to my synology NAS in the /etc/fstab:
:/volume1/loxberry/Backups/ /backup nfs noauto,x-systemd.automount

I’ve also maintained the filter file.
Unfortunately, after some time I get the error:
“cp: failed to preserve ownership…”

I am running the backup explorer as root.
I guess the error has something to do with the privileges on the NAS but I have no idea if there is a way to fix this.
I don’t want to use the “no_root_squash” option for NFS as I guess that will open a huge vulnerability in my infrastructure right?
Is there any other way which could fix this?
Is there any chance DietPiBackup will give you the option to do a backup as .tgz / a compressed tar-file in the future?
In my understanding this would solve all the ownership issues.

BR

Error message:

You might need to set no_root_squash option on your Synology NAS

But that would be a security risk for my NAS wouldn’t it?
Is there no other solution? :frowning:

Its a setting on your nas, it has nothing to do with DietPi. At least I’m not aware on another solution. There are a couple of similar topics within the forum.

Yes, I know. I was just hoping there may be a backup option which does not need no_root_squash in the target system.

We simply write files to a target location using rsync. We make no distinction between local file system or a remote location.

I see - thank you for the explanation.
Happy New Year!