2

I need to set up an automatic sync between a folder on my Disk and my google Drive, that runs every day, using FreeFileSync.

I created a batch job from FreeFileSync, named syncDrive.ffs_batch, and saved in my FreeFileSync installation folder /home/$USER/bin/FreeFileSync.

the job doesn't work for some reason. I've set up the crontab file as follows:

DISPLAY=:10.0
0 18 * * * /home/$USER/bin/FreeFileSync/syncDrive.ffs_batch

if I manually run the script from terminal, i get a permission error. If i run it with sudo, it says command not found.

Anyone knows how to fix? thanks in advance. Using Ubuntu 19.10

steeldriver
  • 142,475

1 Answers1

3

You have to change the command in your crontab to something like:

0 18 * * *   DISPLAY=:0 /home/your-username/bin/FreeFileSync /home/your-username/bin/FreeFileSync/Sync.ffs_batch

to provide full path to the FreeFileSync executable (/home/your-username/bin/FreeFileSync) and to its job-file (/home/your-username/bin/FreeFileSync/Sync.ffs_batch).

N0rbert
  • 103,263