Dear all
I implemented quite some time ago a script ( oh-bkup.sh
), which backs up OH and uploads the backup file to my NAS:
#!/bin/bash
sudo rm /var/lib/openhab/backups/*.zip
sudo rm /home/openhabian/myNAS/*.zip
sudo openhab-cli backup --full
echo Uploading backup to NAS
sudo cp /var/lib/openhab/backups/*.zip /home/openhabian/myNAS
To create I shared folder I wrote to /etc/fstab (this still works):
192.xxx.xxx.xx:/volume2/KNX/Raspberry/mirror /home/openhabian/myNAS nfs rsize=8192,wsize=8192,timeo=14,intr
I executed it via crontab or a rule once a day. Worked fine till OH 4.3. Now backing up (via executing the script, e.g. via ./oh-bkup.sh
) still works fine but when uploading the file to the NAS after some part of uploading the file (e.g. half of backup file size) the system gets stuck and I only can do a hard reboot, i.e. I cannot access OH anymore. Funny enough executing the uploading via cmd line still works, i.e. executing in cmd:
sudo cp /var/lib/openhab/backups/*.zip /home/openhabian/myNAS
Has anybody an idea what the issue could be?