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
syncDrive.ffs_batch
script, or a command within that script? Did you makesyncDrive.ffs_batch
executable? – steeldriver Feb 03 '20 at 17:22$USER
is set by default in the crontab environment - however$LOGNAME
should be (as well as$HOME
- which you could use in place of/home/$USER
) – steeldriver Feb 03 '20 at 19:01rsync
is much better choice for scripting under Linux. Here is one crazy cool advanced example: https://askubuntu.com/a/1029653/566421 – pa4080 Feb 03 '20 at 19:53