[Solved] Backup in another pc in the same network

I finally found the way to reach also ubuntu (it was for some strange reason off line).

But when I lounch sudo touch /mnt/nfs_client/test
nothing appear… is this right?

Does it means it is working??

usually it succeed if it did not return anything.The command just created an empty file. can you try something to see if you are able to change permission and owner

sudo df -h
sudo ls -la /mnt/nfs_client
sudo chmod 777 /mnt/nfs_client/test
sudo chown dietpi:dietpi /mnt/nfs_client/test
sudo ls -la /mnt/nfs_client

I think it is working now. Isn’t it?

root@DietPi:~# sudo df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/root        7.4G  3.4G  3.7G  49% /
devtmpfs          87M     0   87M   0% /dev
tmpfs            215M  4.4M  211M   3% /dev/shm
tmpfs             86M   11M   76M  13% /run
tmpfs            5.0M     0  5.0M   0% /run/lock
tmpfs             50M   28K   50M   1% /var/log
tmpfs            1.0G     0  1.0G   0% /tmp
/dev/mmcblk0p1   127M   52M   75M  42% /boot
/dev/sda1        916G  4.1G  912G   1% /mnt/ownclouddrive
192.168.1.112:/  457G  210G  225G  49% /mnt/nfs_client
root@DietPi:~# sudo ls -la /mnt/nfs_client
total 8
drwxr-xr-x 2 root root 4096 Feb 11 23:17 .
drwxr-xr-x 9 root root 4096 Jan 22 15:58 ..
-rw-r--r-- 1 root root    0 Feb 11 23:18 test
root@DietPi:~# sudo chmod 777 /mnt/nfs_client/test
root@DietPi:~# sudo chown dietpi:dietpi /mnt/nfs_client/test
root@DietPi:~# sudo ls -la /mnt/nfs_client
total 8
drwxr-xr-x 2 root   root   4096 Feb 11 23:17 .
drwxr-xr-x 9 root   root   4096 Jan 22 15:58 ..
-rwxrwxrwx 1 dietpi dietpi    0 Feb 11 23:18 test
root@DietPi:~#

that seems to be working fine. Can you try to run a backup?

Again Great JOB.
The backup on Ubuntu is working…
Thanks a lot

So question is what has changed now? What was the trigger to allow the backup this time? :thinking:

It’s a mistery… like often happens with IT affairs :smiley:

Lol, always good to document every step you do when debugging issues, would have been quite interesting what it was :smiley:. However, great that it finally works.

It’s true MichaIng ,
the problem is I do not understand how we managed the situation. We went forward and back several times without really understand what was wrong.
I guess if someone follows the steps indicated in this tutorial https://phoenixnap.com/kb/ubuntu-nfs-server It should manage the situation easily.

Goodmorning everybody,
I re-open this topic because, after a long period I realized The daily backup is not working anymore.
I’ve tried to go back to the discussion, but I’m a little scared to follow the steps because I’m quite sure a lot of the work is already done.
For example: How can I check on the backup host (the Ubuntu server) if the right directory (where the backup will be hosted) is already done?
Maybe by doing this “reverse engineering” I can resume all the step followed :blush:

What is the error message if you try to execute a manual backup?

Hi @Joulinar , I haven’t tried to backup manually because when I go to the dietpi-backup page I can’t find the drive I would backup in, mounted. This is the reason why I’m not sure if it is already ready on the Ubuntu server.

is your backup drive still mounted?

df -h

Looks like it isn’t there:

Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.4G  3.5G  3.6G  50% /
devtmpfs        207M     0  207M   0% /dev
tmpfs           239M  1.2M  238M   1% /dev/shm
tmpfs            96M  6.7M   89M   7% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            50M     0   50M   0% /var/log
tmpfs           1.0G     0  1.0G   0% /tmp
/dev/mmcblk0p1  127M   52M   75M  41% /boot
/dev/md0        916G  5.4G  864G   1% /mnt/raid1
tmpfs            48M  4.0K   48M   1% /run/user/998
tmpfs            48M  4.0K   48M   1% /run/user/0

Isn’t it?

Did you reboot your system in between? Maybe it is not yet mounted. Usually external drives are mounted once the are used only. (not automatically during boot). Did you checked drive manager if the configuration is still there?

I’m afraid I didn’t check it. How can I?
In between, I’ve rebooted it sometimes of course (just during some blackout). But the system rebooted alone without any problem.

Did you tried to open drive manager? Is the drive visible?

where in the dietpi consolle?
I opened it but I can’t see the drive

I’m neither sure the NFS is still working in the dietpi…

If it is not visible in drive manager, it is not mounted anymore and you would need to mount it again.