Trying to sort out how to have a file sync profile I've set up run once a day at a specific time. I know how to use crontab, but when I test my command from the terminal I get a series of errors:
FreeFileSync /home/MYUSER/Documents/DropboxtoLocal.ffs_batch
Cannot write file "/home/remote-media/Movies/sync.ffs_lock". ESPIPE: Illegal seek [write]
Cannot write file "/home/remote-media/Movies/sync.ffs_lock". ESPIPE: Illegal seek [write]
Cannot write file "/home/remote-media/TV/sync.ffs_lock". ESPIPE: Illegal seek [write]
Cannot write file "/home/remote-media/Movies/sync.ffs_lock". ESPIPE: Illegal seek [write]
Cannot write file "/home/remote-media/TV/sync.ffs_lock". ESPIPE: Illegal seek [write]
I was assuming this was a permissions error, but if I sudo it or even switch and run as root, it still throws errors:
Authorization required, but no authorization protocol specified
14:46:09: Error: Unable to initialize GTK+, is DISPLAY set properly?
This is a REMOTE desktop machine with a gui. Ubuntu 22. Thanks in advance for any help