photOS
photOS copied to clipboard
Removal of pictures when webdav server is offline
Hi, it seems that if the webdav server is offline, all local pictures were removed. Is it possible to change this behavior so that pictures were only synchronized (removed/changed) when the webdav server is online?
Hm, photOS should check if webdav is mounted before initiating the sync: https://github.com/avanc/photOS/blob/66e42b553b47b78b6254827ae251c1df50ace44f/package/photoframe/photoframe.sh#L85-L95
So I'm not quite sure what happens in your case. Can you give me some additional information to investigate further? Was the server not reachable or down?
of course. I'm hosting the server on my synology nas and when the server is down, all synced pictures were removed, when I turn the server on the synchronization starts and after downloading everything is normal again.
Thanks, I could reproduce the problem. I'm still investigating...
mount.davfs: connection timed out two times;
trying one last time
mount.davfs: server temporarily unreachable;
mounting anyway
Why the hell is davfs "mounting anyway" if the server is unreachable?
Created a ticket: http://savannah.nongnu.org/support/index.php?110576
What's about rclone, maybe a better way?
Possibly add check of the mount location for any files?
This would mean that you cannot wipe all images remotely. But I agree the impact is smaller than the current situation.