Page 1 of 1

dietpi-backup failes (Permission denied)

Posted: Fri Apr 12, 2019 10:43 am
by OliS.
Hi,

I'm running Dietpi 6.22.3 on an Odroid XU4. I used dietpi-drive_manager to mount a NFS Share on a Synology NAS. When I run dietpi-backup, it failes.

Here is a excerpt of the output:

Code: Select all

du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/home/dietpi': Permission denied
du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/mnt/dietpi_userdata': Permission denied
du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem': Permission denied
du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root': Permission denied
du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/sbin': Permission denied
du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/srv': Permission denied
du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/usr': Permission denied
du: cannot read directory '/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/var': Permission denied

rsync: opendir "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/home/dietpi" failed: Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/home/dietpi/.bash_logout": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/home/dietpi/.bashrc": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/home/dietpi/.profile": Permission denied (13)

rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/CHANGED": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/MAINTAINER.txt": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/README_DEMO.txt": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/alexa-fhem-0.4.4.tgz": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/alexa-fhem.cfg": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/alexa-fhem.cfg.previous": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/configDB.pm": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem.cfg": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem.cfg.debug": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem.cfg.demo": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem.cfg_bkp": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem.cfg_bkp2": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem.cfg_bkp3": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem.pl": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/fhem_details.js": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/powerstate?newstate=3": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/powerstate?newstate=3.1": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/opt/fhem/regSave.cfg": Permission denied (13)

rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root/.bash_history": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root/.bashrc": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root/.dbshell": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root/.mongorc.js": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root/.profile": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root/.wget-hsts": Permission denied (13)
rsync: recv_generator: failed to stat "/mnt/nfs_client/volume1/Backup/FHEM/dietpi-backup/data/root/unifi_sysvinit_all.deb": Permission denied (13)
I wonder why it tries to read files on the target that are not there yet. The backup has never be run before.

Regards
Oli

Re: dietpi-backup failes (Permission denied)

Posted: Sun Apr 21, 2019 11:37 pm
by MichaIng
@OliS.
Does the file system on the Synology support UNIX permissions? Try to place a test file on it and apply permissions:

Code: Select all

> /mnt/nfs_client/volume1/Backup/FHEM/test
chown www-data /mnt/nfs_client/volume1/Backup/FHEM/test
chmod 775 /mnt/nfs_client/volume1/Backup/FHEM/test