this is what I can see in the /etc/exports on the server:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
/mnt/dietpibkp 192.168.1.15(rw,sync,no_subtree_check)
#
slowly I’m running out of ideas. Can you share again df -h
Maybe we need a fresh pair of eyes. MichaIng could you have a look pls. OP is trying to mount a NFS from Ubuntu desktop to DietPi. Somehow he is struggling with write permission
If not, I’m not 100% sure about the effect, but probably you need to define the fsid in /etc/exports for NFSv4, fsid=0 is the root of all exported filesystems, so should be right when you export one only. Probably client side the path then needs to be skipped, i.e. 192.168.1.96:/ instead of 192.168.1.96:/mnt/dietpibkp.
I still haven’t try to launch the backup. I’ve not understand if I have to mount the server’s “drive” or not. Do I have to launch it choosing the right “drive”?
Waiting for further suggestions
NFS will translate any root operations on the client to the nobody:nogroup credentials as a security measure. Therefore, we need to change the directory ownership to match those credentials.
sudo chown nobody:nogroup /var/nfs/general
>
>
> You’re now ready to export this directory.
To deactivate this security feature (what probably causes your permission errors), you have to use the "no_root_squash" share option at your host:
So my try would be on the host machine:
```text
sudo chown nobody:nogroup /mnt/dietpibkp
sudo nano /etc/exports
So you give the Pi (192.168.1.15) access to the folder /mnt/dietpibkp with read write permissions and some other options,which you can check out in the link below.
Than you made a mount point on the DietPi, which is /mnt/nfs_client
you can manually mount this, but this would be a pain in the ass to do this before every backup, so you made an entry in the fstab:
(And this is the good thing about NFS: it mounts itself when the backup is triggered. This is a very safe way, it’s only mounted when needed. You don’t have to do anything.)
Reboot and have a look at
sudo dietpi-drive_manager
Can you see /mnt/nfs_client ?
Don’t try do add your NFS share with the driver manager, bc Joulinar said some days ago:
DietPi Drive manager is not mounting the NFS export correctly. At the moment it is not able to mount sub folder
Now you want to config you backup at your DietPi with
mmmm I followed step by step all the suggestions. I even add the no_root_squash missed.
I can see the /mnt/nfs_client but the location of the backup (when I open de backup manager) is /mnt/nfs_client/dietpi-backup Is this correct?
I tried anyway to launch the backup but still, a lot of failed: Operation not permitted (1) and deleting usr/lib/modules/5.10.63-v7+/kernel/…ko rows appear.
I saw the above guide and it’s very well done. I would try to follow it but I’m afraid to make a mass since e I have already done randomly some of those steps…
I have no idea what this “deleting” message is about.
DietPi backup is an incremental one. If you already have a backup and files have been removed in source side, they will be deleted on the backup folder as well