Sorry if this is long, I wanted to get as much information in as possible. I am running an odroid c2 with Ubuntu MATE 18.04.3 as a home NAS with two 6TB drives. I have been trying to mirror them using rsync in crontab everyday at 5am. I have looked at all of the similar questions regarding this issue, but none of the solutions seem to have worked for me.
I originally entered "sudo crontab -e" and used the command:
"0 5 * * * rsync -av --delete /media/USBHDD1/shares /media/USBHDD2/shares/".
This did not work in crontab but works flawlessly when entered on the command line.
After much research online and trying many things, it has evolved into me navigating to the system-wide /etc/crontab and trying the slightly differing command:
"0 5 * * * /usr/bin/rsync -av --delete /media/USBHDD1/shares/ /media/USBHDD2/shares/"
My files are still not backing up automatically to the second drive and I am at a loss at what to try next. Does anybody have any ideas?
Running "sudo which rsync":
odroid@odroid:/etc$ sudo which rsync