I am trying to find the differences between a directory in my local computer and a remote server. After a lot of trial and error i have found the following command from here:
diff -q <('sudo ls -1aR /home/spyros/Daily-Backup') <(ssh root@1.1.1.1 'sudo ls -1aR Daily-Backup/')
which seems to work for the second part of the ssh but it produces the following error when run:
sudo ls -1aR /home/spyros/Daily-Backup: No such file or directory
for the file in my computer. Any ideas?