When I use the following code to synchronize, the destination is my NAS (\192.168.1.2\backup)
rclone sync --links --create-empty-src-dirs --delete-excluded -P --stats 5s --log-level INFO --log-file ".\log.txt" "C:\Users" \ \192.168.1.2\backup
If the NAS is shut down, it seems to be trying to synchronize all files once (or 3 times because there are too many files, I have not tested in depth), which will generate a lot of logs.
Is there a way to detect that the destination is inaccessible and immediately stop the synchronization operation and give an error code?